From 67de460ec6206f9d458c053296d2a281be46f9c6 Mon Sep 17 00:00:00 2001 From: Ced2911 Date: Tue, 3 Dec 2013 16:06:34 +0100 Subject: [PATCH] [Xbox] Endian, missing on swap.h ? --- Core/Font/PGF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Font/PGF.cpp b/Core/Font/PGF.cpp index 86015781cc..0e9d95ae3f 100644 --- a/Core/Font/PGF.cpp +++ b/Core/Font/PGF.cpp @@ -331,7 +331,7 @@ bool PGF::GetCharInfo(int charCode, PGFCharInfo *charInfo, int altCharCode) { charInfo->sfp26Height = glyph.dimensionHeight; charInfo->sfp26Ascender = glyph.yAdjustH; // Font y goes upwards. If top is 10 and height is 11, the descender is approx. -1 (below 0.) - charInfo->sfp26Descender = charInfo->sfp26Ascender - charInfo->sfp26Height; + charInfo->sfp26Descender = charInfo->sfp26Ascender - (s32_le)charInfo->sfp26Height; charInfo->sfp26BearingHX = glyph.xAdjustH; charInfo->sfp26BearingHY = glyph.yAdjustH; charInfo->sfp26BearingVX = glyph.xAdjustV;