aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorFlorian Kagerer2010-10-17 13:08:00 +0000
committerFlorian Kagerer2010-10-17 13:08:00 +0000
commitc841c3fb7c9b93d48512c4480753ca409770990f (patch)
tree8e54a799b750048d770f5778c7ad4d64b8ff4778 /engines/kyra
parent728a231d7b8b392b933e507f17f20afe91fd0eed (diff)
downloadscummvm-rg350-c841c3fb7c9b93d48512c4480753ca409770990f.tar.gz
scummvm-rg350-c841c3fb7c9b93d48512c4480753ca409770990f.tar.bz2
scummvm-rg350-c841c3fb7c9b93d48512c4480753ca409770990f.zip
SCUMM/FM-TOWNS: more improvements to japanese font drawing
- made use of LordHotos graphics/sjis code to reduce code duplication - japanese mode for version 3 and 5 works fine now with few exceptions (some line spacing glitches in MI1 intro etc.) svn-id: r53554
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/screen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp
index b7e01f31aa..f08fb4e7ef 100644
--- a/engines/kyra/screen.cpp
+++ b/engines/kyra/screen.cpp
@@ -3313,7 +3313,7 @@ SJISFont::SJISFont(Screen *s, Graphics::FontSJIS *font, const uint8 invisColor,
: _colorMap(0), _font(font), _invisColor(invisColor), _is16Color(is16Color), _screen(s) {
assert(_font);
- _font->enableOutline(outlineSize);
+ _font->setShadowMode(outlineSize ? Graphics::FontSJIS::kShadowTypeOutline : Graphics::FontSJIS::kShadowTypeNone);
_sjisWidth = _font->getMaxFontWidth() >> 1;
_fontHeight = _font->getFontHeight() >> 1;
@@ -3345,9 +3345,9 @@ void SJISFont::setColorMap(const uint8 *src) {
if (!_is16Color) {
if (_colorMap[0] == _invisColor)
- _font->enableOutline(false);
+ _font->setShadowMode(Graphics::FontSJIS::kShadowTypeNone);
else
- _font->enableOutline(true);
+ _font->setShadowMode(Graphics::FontSJIS::kShadowTypeOutline);
}
}