aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2003-07-11 10:13:42 +0000
committerTravis Howell2003-07-11 10:13:42 +0000
commit88c2ef94d2ce7569ebb5c85092602391703ea6d8 (patch)
treed22c02b39e5b673e344607091a4060f5cd8a46a7
parent4c6e10bfd6d65a7c8e83d9417fb114b1263e7558 (diff)
downloadscummvm-rg350-88c2ef94d2ce7569ebb5c85092602391703ea6d8.tar.gz
scummvm-rg350-88c2ef94d2ce7569ebb5c85092602391703ea6d8.tar.bz2
scummvm-rg350-88c2ef94d2ce7569ebb5c85092602391703ea6d8.zip
Using Amiga palette with 16 color Amiga versions only
svn-id: r8905
-rw-r--r--scumm/scummvm.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp
index 366dd63348..9179dd86ab 100644
--- a/scumm/scummvm.cpp
+++ b/scumm/scummvm.cpp
@@ -783,14 +783,16 @@ void Scumm::scummInit() {
for (i = 0; i < 16; i++)
_shadowPalette[i] = i;
setupC64Palette();
- } else if (_features & GF_AMIGA) {
- for (i = 0; i < 16; i++)
- _shadowPalette[i] = i;
- setupAmigaPalette();
} else if (_features & GF_16COLOR) {
- for (i = 0; i < 16; i++)
- _shadowPalette[i] = i;
- setupEGAPalette();
+ if (_features & GF_AMIGA) {
+ for (i = 0; i < 16; i++)
+ _shadowPalette[i] = i;
+ setupAmigaPalette();
+ } else {
+ for (i = 0; i < 16; i++)
+ _shadowPalette[i] = i;
+ setupEGAPalette();
+ }
}
if (_version <= 2) {