mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
XEEN: Fix bottom of letters like g, y, getting cropped off
This commit is contained in:
parent
a91d7ec44b
commit
3b8b6e2419
@ -330,6 +330,7 @@ void FontSurface::writeChar(char c, const Common::Rect &clipRect) {
|
||||
int y = _writePos.y;
|
||||
if (c == 'g' || c == 'p' || c == 'q' || c == 'y')
|
||||
++y;
|
||||
int yStart = y;
|
||||
|
||||
// Get pointers into font data and surface to write pixels to
|
||||
int charIndex = (int)c + (_fontReduced ? 0x80 : 0);
|
||||
@ -354,8 +355,8 @@ void FontSurface::writeChar(char c, const Common::Rect &clipRect) {
|
||||
}
|
||||
}
|
||||
|
||||
addDirtyRect(Common::Rect(_writePos.x, _writePos.y, _writePos.x + FONT_WIDTH,
|
||||
_writePos.y + FONT_HEIGHT));
|
||||
addDirtyRect(Common::Rect(_writePos.x, yStart, _writePos.x + FONT_WIDTH,
|
||||
yStart + FONT_HEIGHT));
|
||||
_writePos.x += _fontData[0x1000 + charIndex];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user