[Scummvm-cvs-logs] SF.net SVN: scummvm:[50433] scummvm/trunk/engines/sci/graphics/screen.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Mon Jun 28 14:04:35 CEST 2010


Revision: 50433
          http://scummvm.svn.sourceforge.net/scummvm/?rev=50433&view=rev
Author:   m_kiewitz
Date:     2010-06-28 12:04:35 +0000 (Mon, 28 Jun 2010)

Log Message:
-----------
SCI: fix regression of r50424, 2x scaling

Modified Paths:
--------------
    scummvm/trunk/engines/sci/graphics/screen.cpp

Modified: scummvm/trunk/engines/sci/graphics/screen.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/screen.cpp	2010-06-28 11:40:39 UTC (rev 50432)
+++ scummvm/trunk/engines/sci/graphics/screen.cpp	2010-06-28 12:04:35 UTC (rev 50433)
@@ -594,9 +594,9 @@
 }
 
 void GfxScreen::scale2x(const byte *src, byte *dst, int16 srcWidth, int16 srcHeight) {
-	const int newWidth = srcWidth * 2;
-	const byte *srcPtr = src;
-
+	int newWidth = srcWidth * 2;
+	const byte *srcPtr = src;
+
 	for (int y = 0; y < srcHeight; y++) {
 		for (int x = 0; x < srcWidth; x++) {
 			const byte color = *srcPtr++;
@@ -606,7 +606,7 @@
 			dst[newWidth + 1] = color;
 			dst += 2;
 		}
-		dst += srcWidth;
+		dst += newWidth;
 	}
 }
 


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