[Scummvm-git-logs] scummvm master -> 3b8b6e2419072a5995af7c4e9cec7a69213e7699
dreammaster
dreammaster at scummvm.org
Fri Mar 30 23:29:28 CEST 2018
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
3b8b6e2419 XEEN: Fix bottom of letters like g, y, getting cropped off
Commit: 3b8b6e2419072a5995af7c4e9cec7a69213e7699
https://github.com/scummvm/scummvm/commit/3b8b6e2419072a5995af7c4e9cec7a69213e7699
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-03-30T17:29:26-04:00
Commit Message:
XEEN: Fix bottom of letters like g, y, getting cropped off
Changed paths:
engines/xeen/font.cpp
diff --git a/engines/xeen/font.cpp b/engines/xeen/font.cpp
index 5cb2937..d5f05ba 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];
}
More information about the Scummvm-git-logs
mailing list