aboutsummaryrefslogtreecommitdiff
path: root/saga/gfx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'saga/gfx.cpp')
-rw-r--r--saga/gfx.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/saga/gfx.cpp b/saga/gfx.cpp
index afc1a75ea0..8f3070fe50 100644
--- a/saga/gfx.cpp
+++ b/saga/gfx.cpp
@@ -174,6 +174,10 @@ void Gfx::setPalette(PalEntry *pal) {
ppal[3] = 0;
}
+ // Make 256th color black. See bug #1256368
+ if (_vm->getFeatures() & GF_MAC_RESOURCES)
+ memset(&_currentPal[255 * 4], 0, 4);
+
_system->setPalette(_currentPal, 0, PAL_ENTRIES);
}
@@ -233,6 +237,10 @@ void Gfx::palToBlack(PalEntry *src_pal, double percent) {
ppal[3] = 0;
}
+ // Make 256th color black. See bug #1256368
+ if (_vm->getFeatures() & GF_MAC_RESOURCES)
+ memset(&_currentPal[255 * 4], 0, 4);
+
_system->setPalette(_currentPal, 0, PAL_ENTRIES);
}
@@ -303,6 +311,10 @@ void Gfx::blackToPal(PalEntry *src_pal, double percent) {
}
}
+ // Make 256th color black. See bug #1256368
+ if (_vm->getFeatures() & GF_MAC_RESOURCES)
+ memset(&_currentPal[255 * 4], 0, 4);
+
_system->setPalette(_currentPal, 0, PAL_ENTRIES);
}