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

waltervn at users.sourceforge.net waltervn at users.sourceforge.net
Fri Jan 8 14:45:44 CET 2010


Revision: 47154
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47154&view=rev
Author:   waltervn
Date:     2010-01-08 13:45:44 +0000 (Fri, 08 Jan 2010)

Log Message:
-----------
SCI: Fix view detection in Hoyle 2

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

Modified: scummvm/trunk/engines/sci/resource.cpp
===================================================================
--- scummvm/trunk/engines/sci/resource.cpp	2010-01-08 12:17:41 UTC (rev 47153)
+++ scummvm/trunk/engines/sci/resource.cpp	2010-01-08 13:45:44 UTC (rev 47154)
@@ -1628,6 +1628,10 @@
 				uint16 height = READ_LE_UINT16(res->data + offset);
 				offset += 6;
 
+				// To improve the heuristic, we skip very small views
+				if (height < 10)
+					continue;
+
 				// Check that the RLE data stays within bounds
 				int y;
 				for (y = 0; y < height; y++) {


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