[Scummvm-cvs-logs] SF.net SVN: scummvm:[53522] scummvm/trunk/engines/sci/graphics/view.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Sat Oct 16 00:19:28 CEST 2010


Revision: 53522
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53522&view=rev
Author:   m_kiewitz
Date:     2010-10-15 22:19:27 +0000 (Fri, 15 Oct 2010)

Log Message:
-----------
SCI: fixing iceman undithering door close-up

room 9 (go up right at the start)

Modified Paths:
--------------
    scummvm/trunk/engines/sci/graphics/view.cpp

Modified: scummvm/trunk/engines/sci/graphics/view.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/view.cpp	2010-10-15 22:05:54 UTC (rev 53521)
+++ scummvm/trunk/engines/sci/graphics/view.cpp	2010-10-15 22:19:27 UTC (rev 53522)
@@ -595,9 +595,10 @@
 			if (unditherTable[color]) {
 				// Some color with black? Turn colors around, otherwise it won't
 				// be the right color at all.
+				byte unditheredColor = color;
 				if ((color & 0xF0) == 0)
-					color = (color << 4) | (color >> 4);
-				curPtr[0] = color; curPtr[1] = color;
+					unditheredColor = (color << 4) | (color >> 4);
+				curPtr[0] = unditheredColor; curPtr[1] = unditheredColor;
 			}
 			curPtr++;
 		}


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