[Scummvm-cvs-logs] SF.net SVN: scummvm:[41624] scummvm/branches/gsoc2009-16bit/engines/scumm/ gfx.h

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Thu Jun 18 08:10:13 CEST 2009


Revision: 41624
          http://scummvm.svn.sourceforge.net/scummvm/?rev=41624&view=rev
Author:   Kirben
Date:     2009-06-18 06:10:13 +0000 (Thu, 18 Jun 2009)

Log Message:
-----------
Fix regression in scrolling rooms.

Modified Paths:
--------------
    scummvm/branches/gsoc2009-16bit/engines/scumm/gfx.h

Modified: scummvm/branches/gsoc2009-16bit/engines/scumm/gfx.h
===================================================================
--- scummvm/branches/gsoc2009-16bit/engines/scumm/gfx.h	2009-06-18 05:30:21 UTC (rev 41623)
+++ scummvm/branches/gsoc2009-16bit/engines/scumm/gfx.h	2009-06-18 06:10:13 UTC (rev 41624)
@@ -155,11 +155,11 @@
 	}
 
 	byte *getPixels(int x, int y) const {
-		return (byte *)pixels + y * pitch + (xstart * 2 + x) * bytesPerPixel;
+		return (byte *)pixels + y * pitch + (xstart + x) * bytesPerPixel;
 	}
 
 	byte *getBackPixels(int x, int y) const {
-		return (byte *)backBuf + y * pitch + (xstart * 2 + x) * bytesPerPixel;
+		return (byte *)backBuf + y * pitch + (xstart + x) * bytesPerPixel;
 	}
 };
 


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