mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-28 10:51:06 +00:00
Flip the descender in char info.
This makes it close to the value from a PSP (just rounded to 64...)
This commit is contained in:
parent
4e0520131a
commit
68af1ea6f8
@ -263,7 +263,8 @@ bool PGF::GetCharInfo(int charCode, PGFCharInfo *charInfo) {
|
||||
charInfo->sfp26Width = glyph.dimensionWidth;
|
||||
charInfo->sfp26Height = glyph.dimensionHeight;
|
||||
charInfo->sfp26Ascender = glyph.top << 6;
|
||||
charInfo->sfp26Descender = (glyph.h - glyph.top) << 6;
|
||||
// Font y goes upwards. If top is 10 and height is 11, the descender is approx. -1 (below 0.)
|
||||
charInfo->sfp26Descender = (glyph.top - glyph.h) << 6;
|
||||
charInfo->sfp26BearingHX = glyph.xAdjustH;
|
||||
charInfo->sfp26BearingHY = glyph.yAdjustH;
|
||||
charInfo->sfp26BearingVX = glyph.xAdjustV;
|
||||
|
Loading…
Reference in New Issue
Block a user