diff options
author | Johannes Schickel | 2009-06-26 00:11:56 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-06-26 00:11:56 +0000 |
commit | e45a941f9dc39bb48c500748841203cfe051510b (patch) | |
tree | ead8f5e7850f97c8ee6207d172ec01e86067e354 /engines | |
parent | 2ea9084d6409b1284ca6ad2d29baa6e77d19907a (diff) | |
download | scummvm-rg350-e45a941f9dc39bb48c500748841203cfe051510b.tar.gz scummvm-rg350-e45a941f9dc39bb48c500748841203cfe051510b.tar.bz2 scummvm-rg350-e45a941f9dc39bb48c500748841203cfe051510b.zip |
Implement PC98 text mode color palette.
svn-id: r41895
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/screen.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp index fb2af54b1b..5a61a5cb82 100644 --- a/engines/kyra/screen.cpp +++ b/engines/kyra/screen.cpp @@ -138,6 +138,21 @@ bool Screen::init() { setScreenPalette(getPalette(0)); + // We setup the PC98 text mode palette at [16, 24], since that will be used + // for KANJI characters in Lands of Lore. + if (_use16ColorMode && _vm->gameFlags().platform == Common::kPlatformPC98) { + uint8 palette[8 * 4]; + + for (int i = 0; i < 8; ++i) { + palette[i * 4 + 0] = ((i >> 1) & 1) * 0xFF; + palette[i * 4 + 1] = ((i >> 2) & 1) * 0xFF; + palette[i * 4 + 2] = ((i >> 0) & 1) * 0xFF; + palette[i * 4 + 3] = 0; + + _system->setPalette(palette, 16, 8); + } + } + _curDim = 0; _charWidth = 0; _charOffset = 0; |