diff options
author | athrxx | 2019-11-24 15:58:37 +0100 |
---|---|---|
committer | athrxx | 2019-12-18 20:50:43 +0100 |
commit | ddb6ca441babcbfefc9daf22d3bda3ddf940cb06 (patch) | |
tree | 702c3d5a40f158a49e027e4a7c09e59bd73e9a2f /engines/kyra/graphics/screen.cpp | |
parent | 512fe083670e0fa1d37b88876d8b612017714c27 (diff) | |
download | scummvm-rg350-ddb6ca441babcbfefc9daf22d3bda3ddf940cb06.tar.gz scummvm-rg350-ddb6ca441babcbfefc9daf22d3bda3ddf940cb06.tar.bz2 scummvm-rg350-ddb6ca441babcbfefc9daf22d3bda3ddf940cb06.zip |
KYRA: (EOB/PC98) - fix level loading and some cleanup
(no block drawing yet)
Diffstat (limited to 'engines/kyra/graphics/screen.cpp')
-rw-r--r-- | engines/kyra/graphics/screen.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/kyra/graphics/screen.cpp b/engines/kyra/graphics/screen.cpp index e21344948f..268cf36094 100644 --- a/engines/kyra/graphics/screen.cpp +++ b/engines/kyra/graphics/screen.cpp @@ -57,6 +57,7 @@ Screen::Screen(KyraEngine_v1 *vm, OSystem *system, const ScreenDim *dimTable, co _sjisMixedFontMode = false; _useHiColorScreen = _vm->gameFlags().useHiColorMode; + _use256ColorMode = true; _screenPageSize = SCREEN_PAGE_SIZE; _16bitPalette = 0; _16bitConversionPalette = 0; @@ -189,6 +190,7 @@ bool Screen::init() { // We allow 256 color palettes in EGA mode, since original EOB II code does the same and requires it const int numColors = _use16ColorMode ? 16 : (_isAmiga ? 32 : (_renderMode == Common::kRenderCGA ? 4 : 256)); const int numColorsInternal = _useAmigaExtraColors ? 64 : numColors; + _use256ColorMode = (_bytesPerPixel != 2 && !_isAmiga && !_use16ColorMode && _renderMode != Common::kRenderCGA && _renderMode != Common::kRenderEGA); _interfacePaletteEnabled = false; |