mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 10:17:14 +00:00
GRAPHICS: Calculate bitmapOffset correctly. Again.
Add, don't set, the extra bitmap offset for italics to keep glyphs from overlapping in memory.
This commit is contained in:
parent
2798b124d1
commit
16ac86cdeb
@ -566,7 +566,7 @@ MacFONTFont *MacFONTFont::scaleFont(const MacFONTFont *src, int newSize, int sla
|
|||||||
if (slant & kMacFontOutline)
|
if (slant & kMacFontOutline)
|
||||||
bitmapOffset += 2;
|
bitmapOffset += 2;
|
||||||
if (slant & kMacFontItalic)
|
if (slant & kMacFontItalic)
|
||||||
bitmapOffset = (data._fRectHeight - 1) / SLANTDEEP;
|
bitmapOffset += (data._fRectHeight - 1) / SLANTDEEP;
|
||||||
if (slant & kMacFontShadow)
|
if (slant & kMacFontShadow)
|
||||||
bitmapOffset++;
|
bitmapOffset++;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user