diff options
author | Paul Gilbert | 2014-12-31 21:09:13 -1000 |
---|---|---|
committer | Paul Gilbert | 2014-12-31 21:09:13 -1000 |
commit | 4a953b06619aae4eded66f868c0f48fb2330d8fa (patch) | |
tree | cad447157f54e71c4152327be16b0405158d31da /engines/xeen/font.cpp | |
parent | 9eb229273668b96f63162cabfd769035f95e8a8b (diff) | |
download | scummvm-rg350-4a953b06619aae4eded66f868c0f48fb2330d8fa.tar.gz scummvm-rg350-4a953b06619aae4eded66f868c0f48fb2330d8fa.tar.bz2 scummvm-rg350-4a953b06619aae4eded66f868c0f48fb2330d8fa.zip |
XEEN: Startup fixes; options menu buttons now showing
Diffstat (limited to 'engines/xeen/font.cpp')
-rw-r--r-- | engines/xeen/font.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/xeen/font.cpp b/engines/xeen/font.cpp index dd1b4dc321..018536b5bf 100644 --- a/engines/xeen/font.cpp +++ b/engines/xeen/font.cpp @@ -124,6 +124,7 @@ Common::String FontSurface::writeString(const Common::String &s, const Common::R _writePos.x += _fontReduced ? 3 : 4; } else if (c == '\r') { fillRect(bounds, _bgColor); + addDirtyRect(bounds); _writePos = Common::Point(bounds.left, bounds.top); } else if (c == 1) { // Turn off reduced font mode @@ -146,8 +147,9 @@ Common::String FontSurface::writeString(const Common::String &s, const Common::R Common::Point pt = _writePos; if (_fontJustify == JUSTIFY_RIGHT) pt.x -= w; - fillRect(Common::Rect(pt.x, pt.y, pt.x + w, pt.y + (_fontReduced ? 9 : 10)), - _bgColor); + + Common::Rect r(pt.x, pt.y, pt.x + w, pt.y + (_fontReduced ? 9 : 10)); + fillRect(r, _bgColor); } else if (c == 5) { continue; } else if (c == 6) { @@ -194,7 +196,7 @@ Common::String FontSurface::writeString(const Common::String &s, const Common::R break; } else if (c == 11) { // Skip y position - int yp = fontAtoi( ); + int yp = fontAtoi(); _writePos.y = MIN(bounds.top + yp, (int)bounds.bottom); } else if (c == 12) { // Set text colors @@ -330,6 +332,8 @@ void FontSurface::writeChar(char c) { } } + addDirtyRect(Common::Rect(_writePos.x, _writePos.y, _writePos.x + FONT_WIDTH, + _writePos.y + FONT_HEIGHT)); _writePos.x += _fontData[0x1000 + charIndex]; } |