[Scummvm-cvs-logs] SF.net SVN: scummvm:[55781] scummvm/trunk/engines/sci/resource.cpp

mthreepwood at users.sourceforge.net mthreepwood at users.sourceforge.net
Sat Feb 5 09:18:03 CET 2011


Revision: 55781
          http://scummvm.svn.sourceforge.net/scummvm/?rev=55781&view=rev
Author:   mthreepwood
Date:     2011-02-05 08:18:03 +0000 (Sat, 05 Feb 2011)

Log Message:
-----------
SCI: Fix detectHires() for Mac SCI32 games

Modified Paths:
--------------
    scummvm/trunk/engines/sci/resource.cpp

Modified: scummvm/trunk/engines/sci/resource.cpp
===================================================================
--- scummvm/trunk/engines/sci/resource.cpp	2011-02-05 08:16:29 UTC (rev 55780)
+++ scummvm/trunk/engines/sci/resource.cpp	2011-02-05 08:18:03 UTC (rev 55781)
@@ -2375,10 +2375,10 @@
 		Resource *res = findResource(ResourceId(kResourceTypePic, i), 0);
 
 		if (res) {
-			if (READ_LE_UINT16(res->data) == 0x0e) {
+			if (READ_SCI11ENDIAN_UINT16(res->data) == 0x0e) {
 				// SCI32 picture
-				uint16 width = READ_LE_UINT16(res->data + 10);
-				uint16 height = READ_LE_UINT16(res->data + 12);
+				uint16 width = READ_SCI11ENDIAN_UINT16(res->data + 10);
+				uint16 height = READ_SCI11ENDIAN_UINT16(res->data + 12);
 				// Surely lowres (e.g. QFG4CD)
 				if ((width == 320) && ((height == 190) || (height == 200)))
 					return false;


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