aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2007-05-29 16:21:09 +0000
committerFilippos Karapetis2007-05-29 16:21:09 +0000
commitc739b43bc738269125d9ed2059b6d3931ae7dced (patch)
tree71eecefc965eedd020508434d730975193860d22
parent438ba78387fdffa63b2f1724a55c2a69a12ad4bc (diff)
downloadscummvm-rg350-c739b43bc738269125d9ed2059b6d3931ae7dced.tar.gz
scummvm-rg350-c739b43bc738269125d9ed2059b6d3931ae7dced.tar.bz2
scummvm-rg350-c739b43bc738269125d9ed2059b6d3931ae7dced.zip
Color 0 should always be black in IHNM. The panel backgrounds don't erroneously change color now when moving between rooms
svn-id: r27004
-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);