[Scummvm-cvs-logs] SF.net SVN: scummvm:[43632] scummvm/trunk/engines/scumm/he/wiz_he.cpp

dhewg at users.sourceforge.net dhewg at users.sourceforge.net
Sat Aug 22 11:22:23 CEST 2009


Revision: 43632
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43632&view=rev
Author:   dhewg
Date:     2009-08-22 09:22:23 +0000 (Sat, 22 Aug 2009)

Log Message:
-----------
Fixed cursor transparency for 16bit HE games on big endian architectures

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/he/wiz_he.cpp

Modified: scummvm/trunk/engines/scumm/he/wiz_he.cpp
===================================================================
--- scummvm/trunk/engines/scumm/he/wiz_he.cpp	2009-08-22 08:49:23 UTC (rev 43631)
+++ scummvm/trunk/engines/scumm/he/wiz_he.cpp	2009-08-22 09:22:23 UTC (rev 43632)
@@ -1504,7 +1504,7 @@
 			uint8 *tmpPtr = dst;
 			for (uint i = 0; i < height; i++) {
 				for (uint j = 0; j < width; j++)
-					WRITE_LE_UINT16(tmpPtr + j * 2, transColor);
+					WRITE_UINT16(tmpPtr + j * 2, transColor);
 				tmpPtr += width * 2;
 			}
 		} else {
@@ -1750,7 +1750,7 @@
 		uint8 *tmpPtr = imageBuffer;
 		for (i = 0; i < dsth; i++) {
 			for (j = 0; j < dstw; j++)
-				WRITE_LE_UINT16(tmpPtr + j * 2, transColor);
+				WRITE_UINT16(tmpPtr + j * 2, transColor);
 			tmpPtr += dstpitch;
 		}
 	} else {
@@ -1967,7 +1967,7 @@
 			y_acc += pra->y_step;
 			if (bitDepth == 2) {
 				if (transColor == -1 || transColor != READ_LE_UINT16(src + src_offs * 2)) {
-					//if (transColor == -1 || READ_LE_UINT16(dstPtr) != transColor)
+					//if (transColor == -1 || READ_UINT16(dstPtr) != transColor)
 						writeColor(dstPtr, dstType, READ_LE_UINT16(src + src_offs * 2));
 				}
 			} else {


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