mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Return # of glyphs, not charmaps, in font info.
This makes it match the value from the PSP, and seems logical (the charmap value is hardly useful, and might lead me to overallocate space for the glyph bitmaps...)
This commit is contained in:
parent
68af1ea6f8
commit
2d7741a433
2 changed files with 2 additions and 2 deletions
|
@ -298,7 +298,7 @@ void PGF::GetFontInfo(PGFFontInfo *fi) {
|
|||
|
||||
fi->maxGlyphWidth = header.maxGlyphWidth;
|
||||
fi->maxGlyphHeight = header.maxGlyphHeight;
|
||||
fi->charMapLength = header.charMapLength;
|
||||
fi->numGlyphs = header.charPointerLength;
|
||||
fi->shadowMapLength = 0; // header.shadowMapLength; TODO
|
||||
|
||||
fi->BPP = header.bpp;
|
||||
|
|
|
@ -242,7 +242,7 @@ struct PGFFontInfo {
|
|||
// Bitmap dimensions.
|
||||
s16_le maxGlyphWidth;
|
||||
s16_le maxGlyphHeight;
|
||||
s32_le charMapLength; // Number of elements in the font's charmap.
|
||||
s32_le numGlyphs;
|
||||
s32_le shadowMapLength; // Number of elements in the font's shadow charmap.
|
||||
|
||||
// Font style (used by font comparison functions).
|
||||
|
|
Loading…
Add table
Reference in a new issue