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

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Mon Jan 11 21:31:12 CET 2010


Revision: 47257
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47257&view=rev
Author:   m_kiewitz
Date:     2010-01-11 20:31:12 +0000 (Mon, 11 Jan 2010)

Log Message:
-----------
SCI: changed displaceY and displaceX for cels to int16, also inserted cast to signed char for sci1 displaceX - should fix wii flickering and incorrect cel placement problems

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

Modified: scummvm/trunk/engines/sci/graphics/view.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/view.cpp	2010-01-11 19:27:33 UTC (rev 47256)
+++ scummvm/trunk/engines/sci/graphics/view.cpp	2010-01-11 20:31:12 UTC (rev 47257)
@@ -143,7 +143,7 @@
 				cel = &_loop[loopNo].cel[celNo];
 				cel->width = READ_LE_UINT16(celData);
 				cel->height = READ_LE_UINT16(celData + 2);
-				cel->displaceX = celData[4];
+				cel->displaceX = (signed char)celData[4];
 				cel->displaceY = celData[5];
 				cel->clearKey = celData[6];
 				if (isEGA) {

Modified: scummvm/trunk/engines/sci/graphics/view.h
===================================================================
--- scummvm/trunk/engines/sci/graphics/view.h	2010-01-11 19:27:33 UTC (rev 47256)
+++ scummvm/trunk/engines/sci/graphics/view.h	2010-01-11 20:31:12 UTC (rev 47257)
@@ -30,8 +30,8 @@
 
 struct CelInfo {
 	int16 width, height;
-	char displaceX;
-	byte displaceY;
+	int16 displaceX;
+	int16 displaceY;
 	byte clearKey;
 	uint16 offsetEGA;
 	uint16 offsetRLE;


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