diff options
author | Paul Gilbert | 2018-03-30 17:29:26 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-03-30 17:29:26 -0400 |
commit | 3b8b6e2419072a5995af7c4e9cec7a69213e7699 (patch) | |
tree | 8600a05014822270ab9b3e5dec91a7d50fd2c910 | |
parent | a91d7ec44b6c5526a81ebce4cc44c69796384bdb (diff) | |
download | scummvm-rg350-3b8b6e2419072a5995af7c4e9cec7a69213e7699.tar.gz scummvm-rg350-3b8b6e2419072a5995af7c4e9cec7a69213e7699.tar.bz2 scummvm-rg350-3b8b6e2419072a5995af7c4e9cec7a69213e7699.zip |
XEEN: Fix bottom of letters like g, y, getting cropped off
-rw-r--r-- | engines/xeen/font.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/xeen/font.cpp b/engines/xeen/font.cpp index 5cb2937df7..d5f05bac0a 100644 --- a/engines/xeen/font.cpp +++ b/engines/xeen/font.cpp @@ -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]; } |