From 62eebc3e17f952defaa779ed1dc770570dac309d Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 7 Jul 2009 18:10:35 +0000 Subject: - Added support for outlined FM-Towns ROM drawing - Adapted KYRA to use that svn-id: r42230 --- engines/kyra/screen.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'engines/kyra') diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp index f66d2bea91..079529f1ef 100644 --- a/engines/kyra/screen.cpp +++ b/engines/kyra/screen.cpp @@ -114,9 +114,12 @@ bool Screen::init() { error("missing font rom ('FONT.ROM') required for this version"); }*/ } + + _sjisFont->enableShadow(!_use16ColorMode); } } + _curPage = 0; uint8 *pagePtr = new uint8[SCREEN_PAGE_SIZE * 8]; for (int pageNum = 0; pageNum < SCREEN_PAGE_NUM; pageNum += 2) @@ -3016,6 +3019,9 @@ void Screen::drawCharSJIS(uint16 c, int x, int y) { } else { color1 = _textColorsMap[1]; color2 = _textColorsMap[0]; + + if (color2 == _sjisInvisibleColor) + _sjisFont->enableShadow(false); } if (_curPage == 0 || _curPage == 1) @@ -3032,9 +3038,9 @@ void Screen::drawCharSJIS(uint16 c, int x, int y) { destPage += y * 640 + x; - // We used to have shadow around the gylphs, with the old drawing code, but that didn't - // match the original. - _sjisFont->drawChar(destPage, c, 640, 1, color1); + _sjisFont->drawChar(destPage, c, 640, 1, color1, color2); + + _sjisFont->enableShadow(!_use16ColorMode); } #pragma mark - -- cgit v1.2.3