aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/palette.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2012-12-11 22:40:19 +0200
committerFilippos Karapetis2012-12-11 22:40:19 +0200
commit532194db1ffa4c7e2425c5735a103e1ae14ed053 (patch)
treeb710d1b2207005599d8f8e0ab98b4a1ba6915fa0 /engines/tinsel/palette.cpp
parent344d6bc2dad335527085767dfa0734478e658747 (diff)
downloadscummvm-rg350-532194db1ffa4c7e2425c5735a103e1ae14ed053.tar.gz
scummvm-rg350-532194db1ffa4c7e2425c5735a103e1ae14ed053.tar.bz2
scummvm-rg350-532194db1ffa4c7e2425c5735a103e1ae14ed053.zip
TINSEL: Fix the colors in the Mac version of DW1
Diffstat (limited to 'engines/tinsel/palette.cpp')
-rw-r--r--engines/tinsel/palette.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/tinsel/palette.cpp b/engines/tinsel/palette.cpp
index c7c8cd0b63..11b9c60039 100644
--- a/engines/tinsel/palette.cpp
+++ b/engines/tinsel/palette.cpp
@@ -170,6 +170,11 @@ void PalettesToVideoDAC() {
pal[i * 3 + 2] = TINSEL_GetBValue(pColors[i]);
}
+ // In DW1 Mac, the last palette color should be black. We fix it here.
+ if (TinselV1Mac) {
+ pal[254 * 3 + 0] = pal[254 * 3 + 1] = pal[254 * 3 + 2] = 0;
+ }
+
// update the system palette
g_system->getPaletteManager()->setPalette(pal, pDACtail->destDACindex, pDACtail->numColors);