[Scummvm-cvs-logs] SF.net SVN: scummvm: [25455] scummvm/trunk/engines/lure/hotspots.cpp

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Sat Feb 10 04:45:08 CET 2007


Revision: 25455
          http://scummvm.svn.sourceforge.net/scummvm/?rev=25455&view=rev
Author:   dreammaster
Date:     2007-02-09 19:45:06 -0800 (Fri, 09 Feb 2007)

Log Message:
-----------
Bugfix to clipping so player's feet aren't visible in the corner of the screen as the chute is exited

Modified Paths:
--------------
    scummvm/trunk/engines/lure/hotspots.cpp

Modified: scummvm/trunk/engines/lure/hotspots.cpp
===================================================================
--- scummvm/trunk/engines/lure/hotspots.cpp	2007-02-10 02:05:59 UTC (rev 25454)
+++ scummvm/trunk/engines/lure/hotspots.cpp	2007-02-10 03:45:06 UTC (rev 25455)
@@ -317,13 +317,13 @@
 
 	// Handle clipping for Y position
 	if (yPos < 0) {
-		if (yPos + hHeight <= 0) 
+		if (yPos + hHeight <= MENUBAR_Y_SIZE) 
 			// Completely off screen, so don't display
 			return;
 
 		// Reduce the source rectangle to only the on-screen portion
-		r.top += -yPos;
-		yPos = 0;
+		r.top += -(yPos + MENUBAR_Y_SIZE);
+		yPos = MENUBAR_Y_SIZE;
 	}
 	else if (yPos >= FULL_SCREEN_HEIGHT)
 		return;


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