aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorJohannes Schickel2009-07-07 18:10:35 +0000
committerJohannes Schickel2009-07-07 18:10:35 +0000
commit62eebc3e17f952defaa779ed1dc770570dac309d (patch)
treead1af4d9a6c700c6dcdbb15169408d209bff2c16 /engines/kyra
parent9bdf1a2ab139d364ee30906a18dc05de8c88e487 (diff)
downloadscummvm-rg350-62eebc3e17f952defaa779ed1dc770570dac309d.tar.gz
scummvm-rg350-62eebc3e17f952defaa779ed1dc770570dac309d.tar.bz2
scummvm-rg350-62eebc3e17f952defaa779ed1dc770570dac309d.zip
- Added support for outlined FM-Towns ROM drawing
- Adapted KYRA to use that svn-id: r42230
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/screen.cpp12
1 files changed, 9 insertions, 3 deletions
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 -