[Scummvm-cvs-logs] SF.net SVN: scummvm:[35733] scummvm/trunk/backends/platform/wince/wince-sdl .cpp

knakos at users.sourceforge.net knakos at users.sourceforge.net
Sun Jan 4 21:37:25 CET 2009


Revision: 35733
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35733&view=rev
Author:   knakos
Date:     2009-01-04 20:37:24 +0000 (Sun, 04 Jan 2009)

Log Message:
-----------
had forgotten the case of a rect being partially off the top of the screen (and not the bottom at the same time). fixes bug #2470228

Modified Paths:
--------------
    scummvm/trunk/backends/platform/wince/wince-sdl.cpp

Modified: scummvm/trunk/backends/platform/wince/wince-sdl.cpp
===================================================================
--- scummvm/trunk/backends/platform/wince/wince-sdl.cpp	2009-01-04 19:52:59 UTC (rev 35732)
+++ scummvm/trunk/backends/platform/wince/wince-sdl.cpp	2009-01-04 20:37:24 UTC (rev 35733)
@@ -1646,7 +1646,9 @@
 			if (routy + routh < 0)	continue;
 			if (routy < 0) {
 				routh += routy;
+				r->y -= routy * _scaleFactorYd / _scaleFactorYm;
 				routy = 0;
+				r->h = routh * _scaleFactorYd / _scaleFactorYm;
 			}
 			if (_orientationLandscape) {
 				if (routy > _platformScreenWidth)	continue;


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