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:
Unknown W. Brackets 2013-11-16 18:33:10 -08:00
parent 68af1ea6f8
commit 2d7741a433
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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).