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

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Fri Jan 29 01:03:10 CET 2010


Revision: 47661
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47661&view=rev
Author:   m_kiewitz
Date:     2010-01-29 00:03:10 +0000 (Fri, 29 Jan 2010)

Log Message:
-----------
SCI: view class fix for hires views that are larger than 64k (fixes kq7 cel corruption)

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-28 23:11:55 UTC (rev 47660)
+++ scummvm/trunk/engines/sci/graphics/view.cpp	2010-01-29 00:03:10 UTC (rev 47661)
@@ -212,8 +212,8 @@
 				cel->displaceY = READ_LE_UINT16(celData + 6);
 				cel->clearKey = celData[8];
 				cel->offsetEGA = 0;
-				cel->offsetRLE = READ_LE_UINT16(celData + 24);
-				cel->offsetLiteral = READ_LE_UINT16(celData + 28);
+				cel->offsetRLE = READ_LE_UINT32(celData + 24);
+				cel->offsetLiteral = READ_LE_UINT32(celData + 28);
 				cel->rawBitmap = 0;
 				if (_loop[loopNo].mirrorFlag)
 					cel->displaceX = -cel->displaceX;

Modified: scummvm/trunk/engines/sci/graphics/view.h
===================================================================
--- scummvm/trunk/engines/sci/graphics/view.h	2010-01-28 23:11:55 UTC (rev 47660)
+++ scummvm/trunk/engines/sci/graphics/view.h	2010-01-29 00:03:10 UTC (rev 47661)
@@ -34,8 +34,8 @@
 	int16 displaceY;
 	byte clearKey;
 	uint16 offsetEGA;
-	uint16 offsetRLE;
-	uint16 offsetLiteral;
+	uint32 offsetRLE;
+	uint32 offsetLiteral;
 	byte *rawBitmap;
 };
 


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