mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 00:41:12 +00:00
Implement PC98 text mode color palette.
svn-id: r41895
This commit is contained in:
parent
2ea9084d64
commit
e45a941f9d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user