[Scummvm-cvs-logs] SF.net SVN: scummvm:[53102] scummvm/trunk/engines/kyra/screen_v2.cpp

athrxx at users.sourceforge.net athrxx at users.sourceforge.net
Sat Oct 9 16:55:33 CEST 2010


Revision: 53102
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53102&view=rev
Author:   athrxx
Date:     2010-10-09 14:55:33 +0000 (Sat, 09 Oct 2010)

Log Message:
-----------
KYRA: fix regression in Screen_v2::generateOverlay()

(very noticeable in LOL PC-98)

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/screen_v2.cpp

Modified: scummvm/trunk/engines/kyra/screen_v2.cpp
===================================================================
--- scummvm/trunk/engines/kyra/screen_v2.cpp	2010-10-09 11:33:29 UTC (rev 53101)
+++ scummvm/trunk/engines/kyra/screen_v2.cpp	2010-10-09 14:55:33 UTC (rev 53102)
@@ -64,9 +64,9 @@
 	}
 
 	for (int i = 1; i != 256; ++i) {
-		const byte curR = pal[i * 3 + 0] - ((((pal[i * 3 + 0] - opR) * weight) >> 7) & 0x7F);
-		const byte curG = pal[i * 3 + 1] - ((((pal[i * 3 + 1] - opG) * weight) >> 7) & 0x7F);
-		const byte curB = pal[i * 3 + 2] - ((((pal[i * 3 + 2] - opB) * weight) >> 7) & 0x7F);
+		const byte curR = pal[i * 3 + 0] - (((pal[i * 3 + 0] - opR) * weight) >> 7);
+		const byte curG = pal[i * 3 + 1] - (((pal[i * 3 + 1] - opG) * weight) >> 7);
+		const byte curB = pal[i * 3 + 2] - (((pal[i * 3 + 2] - opB) * weight) >> 7);
 
 		uint16 idxSum = _use16ColorMode ? 0xFFFF : 0x7FFF;
 		byte index = opColor;


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