diff options
author | Johannes Schickel | 2007-02-12 18:01:51 +0000 |
---|---|---|
committer | Johannes Schickel | 2007-02-12 18:01:51 +0000 |
commit | 7af17382b5e85f48412b2b44733ac3d5431b31a9 (patch) | |
tree | f63cdc6932d49d25ff3ff3e6457240d2db0204f2 /engines/kyra/sequences_v1.cpp | |
parent | 7107fcc2c693a077689a0969011e0e164f75b382 (diff) | |
download | scummvm-rg350-7af17382b5e85f48412b2b44733ac3d5431b31a9.tar.gz scummvm-rg350-7af17382b5e85f48412b2b44733ac3d5431b31a9.tar.bz2 scummvm-rg350-7af17382b5e85f48412b2b44733ac3d5431b31a9.zip |
Support for Japanese FM-Towns version. (code contributed by Florian Kagerer, modified a bit)
svn-id: r25530
Diffstat (limited to 'engines/kyra/sequences_v1.cpp')
-rw-r--r-- | engines/kyra/sequences_v1.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/engines/kyra/sequences_v1.cpp b/engines/kyra/sequences_v1.cpp index 64a8d94b99..07c44b4fe7 100644 --- a/engines/kyra/sequences_v1.cpp +++ b/engines/kyra/sequences_v1.cpp @@ -211,7 +211,7 @@ void KyraEngine::seq_introStory() { return; } else if (_flags.lang == Common::EN_ANY && _flags.platform == Common::kPlatformPC) { _screen->loadBitmap("TEXT.CPS", 3, 3, 0); - } else if (_flags.lang == Common::EN_ANY) { + } else if (_flags.lang == Common::EN_ANY || _flags.lang == Common::JA_JPN) { _screen->loadBitmap("TEXT_ENG.CPS", 3, 3, 0); } else if (_flags.lang == Common::DE_DEU) { _screen->loadBitmap("TEXT_GER.CPS", 3, 3, 0); @@ -225,6 +225,20 @@ void KyraEngine::seq_introStory() { warning("no story graphics file found"); } _screen->copyRegion(0, 0, 0, 0, 320, 200, 3, 0); + + if (_flags.lang == Common::JA_JPN) { + const int x1 = (Screen::SCREEN_W - _screen->getTextWidth(_seq_textsTable[18])) / 2; + const int x2 = (Screen::SCREEN_W - _screen->getTextWidth(_seq_textsTable[19])) / 2; + const int y1 = 175; + const int y2 = 184; + + uint8 colorMap[] = { 0, 15, 12, 12 }; + _screen->setTextColor(colorMap, 0, 3); + + _screen->printText(_seq_textsTable[18], x1, y1, 5, 8); + _screen->printText(_seq_textsTable[19], x2, y2, 5, 8); + } + _screen->updateScreen(); //debugC(0, kDebugLevelMain, "skipFlag %i, %i", _skipFlag, _tickLength); delay(360 * _tickLength); |