aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/saga/gfx.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/saga/gfx.cpp b/engines/saga/gfx.cpp
index bb85bd9b5f..989ca1f214 100644
--- a/engines/saga/gfx.cpp
+++ b/engines/saga/gfx.cpp
@@ -215,6 +215,10 @@ void Gfx::setPalette(const PalEntry *pal, bool full) {
ppal[3] = 0;
}
+ // Color 0 should always be black in IHNM
+ if (_vm->getGameType() == GType_IHNM)
+ memset(&_currentPal[0 * 4], 0, 4);
+
// Make 256th color black. See bug #1256368
if ((_vm->getPlatform() == Common::kPlatformMacintosh) && !_vm->_scene->isInIntro())
memset(&_currentPal[255 * 4], 0, 4);
@@ -320,6 +324,10 @@ void Gfx::palToBlack(PalEntry *srcPal, double percent) {
ppal[3] = 0;
}
+ // Color 0 should always be black in IHNM
+ if (_vm->getGameType() == GType_IHNM)
+ memset(&_currentPal[0 * 4], 0, 4);
+
// Make 256th color black. See bug #1256368
if ((_vm->getPlatform() == Common::kPlatformMacintosh) && !_vm->_scene->isInIntro())
memset(&_currentPal[255 * 4], 0, 4);
@@ -385,6 +393,10 @@ void Gfx::blackToPal(PalEntry *srcPal, double percent) {
ppal[3] = 0;
}
+ // Color 0 should always be black in IHNM
+ if (_vm->getGameType() == GType_IHNM)
+ memset(&_currentPal[0 * 4], 0, 4);
+
// Make 256th color black. See bug #1256368
if ((_vm->getPlatform() == Common::kPlatformMacintosh) && !_vm->_scene->isInIntro())
memset(&_currentPal[255 * 4], 0, 4);