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

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Fri Jun 11 11:17:13 CEST 2010


Revision: 49592
          http://scummvm.svn.sourceforge.net/scummvm/?rev=49592&view=rev
Author:   m_kiewitz
Date:     2010-06-11 09:17:11 +0000 (Fri, 11 Jun 2010)

Log Message:
-----------
SCI: adjust priority bottom, if its 200 to avoid possible out of bounds (sierra actually does the same)

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

Modified: scummvm/trunk/engines/sci/graphics/ports.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/ports.cpp	2010-06-11 07:47:57 UTC (rev 49591)
+++ scummvm/trunk/engines/sci/graphics/ports.cpp	2010-06-11 09:17:11 UTC (rev 49592)
@@ -496,6 +496,11 @@
 	// We fill space that is left over with the highest band (hardcoded 200 limit, because this algo isnt meant to be used on hires)
 	for (y = _priorityBottom; y < 200; y++)
 		_priorityBands[y] = _priorityBandCount;
+
+	// adjust, if bottom is 200 (one over the actual screen range) - we could otherwise go possible out of bounds
+	//  sierra sci also adjust accordingly
+	if (_priorityBottom == 200)
+		_priorityBottom--;
 }
 
 void GfxPorts::priorityBandsInit(byte *data) {


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