[Scummvm-cvs-logs] SF.net SVN: scummvm: [27004] scummvm/trunk/engines/saga/gfx.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Tue May 29 18:21:10 CEST 2007


Revision: 27004
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27004&view=rev
Author:   thebluegr
Date:     2007-05-29 09:21:09 -0700 (Tue, 29 May 2007)

Log Message:
-----------
Color 0 should always be black in IHNM. The panel backgrounds don't erroneously change color now when moving between rooms

Modified Paths:
--------------
    scummvm/trunk/engines/saga/gfx.cpp

Modified: scummvm/trunk/engines/saga/gfx.cpp
===================================================================
--- scummvm/trunk/engines/saga/gfx.cpp	2007-05-29 12:55:17 UTC (rev 27003)
+++ scummvm/trunk/engines/saga/gfx.cpp	2007-05-29 16:21:09 UTC (rev 27004)
@@ -215,6 +215,10 @@
 		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 @@
 		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 @@
 		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);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list