[Scummvm-cvs-logs] SF.net SVN: scummvm:[44439] scummvm/trunk/engines/made/screen.cpp

john_doe at users.sourceforge.net john_doe at users.sourceforge.net
Mon Sep 28 09:28:20 CEST 2009


Revision: 44439
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44439&view=rev
Author:   john_doe
Date:     2009-09-28 07:28:20 +0000 (Mon, 28 Sep 2009)

Log Message:
-----------
Fixed clipping-related bug (bug #2826036)

Modified Paths:
--------------
    scummvm/trunk/engines/made/screen.cpp

Modified: scummvm/trunk/engines/made/screen.cpp
===================================================================
--- scummvm/trunk/engines/made/screen.cpp	2009-09-28 07:25:28 UTC (rev 44438)
+++ scummvm/trunk/engines/made/screen.cpp	2009-09-28 07:28:20 UTC (rev 44439)
@@ -177,8 +177,8 @@
 	if (y + clipHeight > clipInfo.clipRect.bottom) {
 		clipHeight = clipInfo.clipRect.bottom - y;
 	}
-
-	source = (byte*)sourceSurface->getBasePtr(startX, startY);
+	
+	source = (byte*)sourceSurface->getBasePtr(0, startY);
 	dest = (byte*)clipInfo.destSurface->getBasePtr(x, y);
 	if (_vm->getGameID() != GID_RTZ)
 		maskp = (byte*)_maskDrawCtx.destSurface->getBasePtr(x, y);
@@ -188,10 +188,10 @@
 
 	if (flipX) {
 		linePtrAdd = -1;
-		sourceAdd = sourceSurface->w - 1;
+		sourceAdd = sourceSurface->w - startX - 1;
 	} else {
 		linePtrAdd = 1;
-		sourceAdd = 0;
+		sourceAdd = startX;
 	}
 
 	if (flipY) {


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