aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2016-08-23 05:17:57 +0300
committerFilippos Karapetis2016-08-23 05:18:42 +0300
commit1c19029c5817038da66a1837997ba994337fdea2 (patch)
tree86000fb5a6a14f06f956334794accba948469ded
parentdf3e545976f401e4be999eb1c8fa9726b9dfcb38 (diff)
downloadscummvm-rg350-1c19029c5817038da66a1837997ba994337fdea2.tar.gz
scummvm-rg350-1c19029c5817038da66a1837997ba994337fdea2.tar.bz2
scummvm-rg350-1c19029c5817038da66a1837997ba994337fdea2.zip
SCI32: Fix palette in SCI32 Mac games
-rw-r--r--engines/sci/graphics/palette32.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/engines/sci/graphics/palette32.cpp b/engines/sci/graphics/palette32.cpp
index 2a98c237b0..c7098bc3e4 100644
--- a/engines/sci/graphics/palette32.cpp
+++ b/engines/sci/graphics/palette32.cpp
@@ -282,10 +282,16 @@ void GfxPalette32::updateHardware(const bool updateScreen) {
bpal[i * 3 + 2] = _currentPalette.colors[i].b;
}
- // The last color must always be white
- bpal[255 * 3 ] = 255;
- bpal[255 * 3 + 1] = 255;
- bpal[255 * 3 + 2] = 255;
+ if (g_sci->getPlatform() != Common::kPlatformMacintosh) {
+ // The last color must always be white
+ bpal[255 * 3 ] = 255;
+ bpal[255 * 3 + 1] = 255;
+ bpal[255 * 3 + 2] = 255;
+ } else {
+ bpal[255 * 3 ] = 0;
+ bpal[255 * 3 + 1] = 0;
+ bpal[255 * 3 + 2] = 0;
+ }
g_system->getPaletteManager()->setPalette(bpal, 0, 256);
if (updateScreen) {