[Scummvm-cvs-logs] SF.net SVN: scummvm:[35254] scummvm/trunk/engines/parallaction/parallaction .cpp

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Sat Dec 6 07:13:49 CET 2008


Revision: 35254
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35254&view=rev
Author:   peres001
Date:     2008-12-06 06:13:48 +0000 (Sat, 06 Dec 2008)

Log Message:
-----------
Simplified scrolling calculations.

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/parallaction.cpp

Modified: scummvm/trunk/engines/parallaction/parallaction.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/parallaction.cpp	2008-12-06 04:51:04 UTC (rev 35253)
+++ scummvm/trunk/engines/parallaction/parallaction.cpp	2008-12-06 06:13:48 UTC (rev 35254)
@@ -168,10 +168,10 @@
 		int max = _vm->_screenWidth - SCROLL_BAND_WIDTH;
 
 		if (foot.x < min) {
-			scrollX = CLIP(scrollX - (min - foot.x), 0, scrollX);
+			scrollX -= (min - foot.x);
 		} else
 		if (foot.x > max) {
-			scrollX = CLIP(scrollX + (foot.x - max), scrollX, _vm->_gfx->_backgroundInfo->width - _vm->_screenWidth);
+			scrollX += (foot.x - max);
 		}
 
 		_gfx->setScrollPos(scrollX);


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