[Scummvm-cvs-logs] SF.net SVN: scummvm: [29454] scummvm/trunk/engines/saga/scene.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Fri Nov 9 00:35:46 CET 2007


Revision: 29454
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29454&view=rev
Author:   thebluegr
Date:     2007-11-08 15:35:46 -0800 (Thu, 08 Nov 2007)

Log Message:
-----------
Slight fix for off screen path calculation

Modified Paths:
--------------
    scummvm/trunk/engines/saga/scene.cpp

Modified: scummvm/trunk/engines/saga/scene.cpp
===================================================================
--- scummvm/trunk/engines/saga/scene.cpp	2007-11-08 22:59:29 UTC (rev 29453)
+++ scummvm/trunk/engines/saga/scene.cpp	2007-11-08 23:35:46 UTC (rev 29454)
@@ -553,8 +553,8 @@
 		return false;
 	}
 
-	point.x = clamp( 0, testPoint.x, _bgMask.w - 1 );
-	point.y = clamp( 0, testPoint.y, _bgMask.h - 1 );
+	point.x = clamp(0, testPoint.x, _vm->getDisplayWidth() - 1);
+	point.y = clamp(0, testPoint.y, _bgMask.h - 1);
 	if (point == testPoint) {
 		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