From 03a26923c91ee608382bce6d11af4a9049fa86dc Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 30 Sep 2009 14:53:07 +0000 Subject: Implemented support for drawing 8x16 chars from our custom SJIS font. svn-id: r44486 --- engines/kyra/screen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp index f2221d0c3c..5a7bbc4f9a 100644 --- a/engines/kyra/screen.cpp +++ b/engines/kyra/screen.cpp @@ -1136,7 +1136,7 @@ int Screen::getFontWidth() const { int Screen::getCharWidth(uint16 c) const { if ((c & 0xFF00) && _sjisFont) - return _sjisFont->getFontWidth() >> 1; + return _sjisFont->getMaxFontWidth() >> 1; return _fonts[_currentFont]->getCharWidth(c) + _charWidth; } @@ -3092,7 +3092,7 @@ void Screen::drawCharSJIS(uint16 c, int x, int y) { } if (_curPage == 0 || _curPage == 1) - addDirtyRect(x, y, _sjisFont->getFontWidth() >> 1, _sjisFont->getFontHeight() >> 1); + addDirtyRect(x, y, _sjisFont->getMaxFontWidth() >> 1, _sjisFont->getFontHeight() >> 1); x <<= 1; y <<= 1; -- cgit v1.2.3