diff options
author | Johannes Schickel | 2009-06-25 23:04:32 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-06-25 23:04:32 +0000 |
commit | 44e2f4c9297c55d71f11ec55d63a506c053ac797 (patch) | |
tree | 648ba1813ce09b4fbf01238c8e7f2d42d72f15da /engines/kyra/screen.cpp | |
parent | 7bbad2738ac447f0d91c194017dfa8acbf9c3783 (diff) | |
download | scummvm-rg350-44e2f4c9297c55d71f11ec55d63a506c053ac797.tar.gz scummvm-rg350-44e2f4c9297c55d71f11ec55d63a506c053ac797.tar.bz2 scummvm-rg350-44e2f4c9297c55d71f11ec55d63a506c053ac797.zip |
Only initialize palettes with 16 colors in (real) 16 color games.
svn-id: r41892
Diffstat (limited to 'engines/kyra/screen.cpp')
-rw-r--r-- | engines/kyra/screen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp index 5b5fab4de0..fb2af54b1b 100644 --- a/engines/kyra/screen.cpp +++ b/engines/kyra/screen.cpp @@ -122,7 +122,7 @@ bool Screen::init() { memset(_shapePages, 0, sizeof(_shapePages)); const int paletteCount = (_vm->gameFlags().platform == Common::kPlatformAmiga) ? 12 : 4; - const int numColors = (_vm->gameFlags().platform == Common::kPlatformAmiga) ? 32 : 256; + const int numColors = _use16ColorMode ? 16 : ((_vm->gameFlags().platform == Common::kPlatformAmiga) ? 32 : 256); _screenPalette = new Palette(numColors); assert(_screenPalette); |