diff options
author | athrxx | 2019-04-13 22:20:51 +0200 |
---|---|---|
committer | athrxx | 2019-04-13 22:24:42 +0200 |
commit | 087444b6981606369bc93b19993d6acd6dbf6354 (patch) | |
tree | 8dcfd1720d9a031392d32171031e1c0f6836def8 /engines/kyra/graphics/screen.cpp | |
parent | 651387bf19c6d97ec10edeeb1fccab13eaa1f474 (diff) | |
download | scummvm-rg350-087444b6981606369bc93b19993d6acd6dbf6354.tar.gz scummvm-rg350-087444b6981606369bc93b19993d6acd6dbf6354.tar.bz2 scummvm-rg350-087444b6981606369bc93b19993d6acd6dbf6354.zip |
KYRA: hopefully fix broken NDS, AmigaOS, PSP, OpenPandora ports
Unfortunately I don't understand the reason for the PSP and OpenPandora failure. The (should be irrelevant) DarkmoonSequenceHelper changes are just a try...
Diffstat (limited to 'engines/kyra/graphics/screen.cpp')
-rw-r--r-- | engines/kyra/graphics/screen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/graphics/screen.cpp b/engines/kyra/graphics/screen.cpp index b69cc07e77..b20fa46c48 100644 --- a/engines/kyra/graphics/screen.cpp +++ b/engines/kyra/graphics/screen.cpp @@ -3358,7 +3358,7 @@ void Screen::loadPalette(const byte *data, Palette &pal, int bytes) { if (_isAmiga) { // EOB II Amiga sometimes has multiple palettes here one after // the other (64 bytes each). We only load the first one here. - pal.loadAmigaPalette(stream, 0, MIN(32, stream.size() / Palette::kAmigaBytesPerColor)); + pal.loadAmigaPalette(stream, 0, MIN<int>(32, stream.size() / Palette::kAmigaBytesPerColor)); } else if (_vm->gameFlags().platform == Common::kPlatformPC98 && _use16ColorMode) { pal.loadPC98Palette(stream, 0, stream.size() / Palette::kPC98BytesPerColor); } else if (_renderMode == Common::kRenderEGA) { |