diff options
author | Florian Kagerer | 2009-10-06 17:22:40 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-10-06 17:22:40 +0000 |
commit | 45fda46cf31884ca446c23e6c6df50794145cf9e (patch) | |
tree | 328bf37e8211368e96d7d45c1351d440544e5006 /engines/kyra/script_tim.cpp | |
parent | 1481c78d1a61937d9339563a521b3b87c14520e9 (diff) | |
download | scummvm-rg350-45fda46cf31884ca446c23e6c6df50794145cf9e.tar.gz scummvm-rg350-45fda46cf31884ca446c23e6c6df50794145cf9e.tar.bz2 scummvm-rg350-45fda46cf31884ca446c23e6c6df50794145cf9e.zip |
KYRA/LOL: - get rid of ascii/sjis detection which could cause problems when typing savegame names
- fixed some minor bugs
svn-id: r44709
Diffstat (limited to 'engines/kyra/script_tim.cpp')
-rw-r--r-- | engines/kyra/script_tim.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/kyra/script_tim.cpp b/engines/kyra/script_tim.cpp index cbca497c70..175cada45d 100644 --- a/engines/kyra/script_tim.cpp +++ b/engines/kyra/script_tim.cpp @@ -320,7 +320,7 @@ void TIMInterpreter::displayText(uint16 textId, int16 flags) { if (flags < 0) { static const uint8 colorMap[] = { 0x00, 0xF0, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; - _screen->setFont(Screen::FID_8_FNT); + _screen->setFont(isPC98 ? Screen::FID_SJIS_FNT : Screen::FID_8_FNT); _screen->setTextColorMap(colorMap); _screen->_charWidth = -2; } @@ -369,7 +369,7 @@ void TIMInterpreter::displayText(uint16 textId, int16 flags) { if (flags < 0) { static const uint8 colorMap[] = { 0x00, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0x00, 0x00, 0x00, 0x00 }; - _screen->setFont(Screen::FID_INTRO_FNT); + _screen->setFont(isPC98 ? Screen::FID_SJIS_FNT : Screen::FID_INTRO_FNT); _screen->setTextColorMap(colorMap); _screen->_charWidth = 0; } @@ -387,7 +387,7 @@ void TIMInterpreter::displayText(uint16 textId, int16 flags, uint8 color) { if (flags == 255) return; - _screen->setFont(Screen::FID_INTRO_FNT); + _screen->setFont(_vm->gameFlags().use16ColorMode ? Screen::FID_SJIS_FNT : Screen::FID_INTRO_FNT); static const uint8 colorMap[] = { 0x00, 0xA0, 0xA1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; _screen->setTextColorMap(colorMap); |