[Scummvm-cvs-logs] SF.net SVN: scummvm: [21872] scummvm/trunk/engines/simon/vga.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Thu Apr 13 22:16:04 CEST 2006


Revision: 21872
Author:   eriktorbjorn
Date:     2006-04-13 22:15:11 -0700 (Thu, 13 Apr 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=21872&view=rev

Log Message:
-----------
Fixed stupid mistake (it's my mistake, I can call it whatever I want!) in the
scaling code. Hopefully it's right now. The scaling glitches seem to be gone,
at any rate.

Modified Paths:
--------------
    scummvm/trunk/engines/simon/vga.cpp
Modified: scummvm/trunk/engines/simon/vga.cpp
===================================================================
--- scummvm/trunk/engines/simon/vga.cpp	2006-04-14 05:13:59 UTC (rev 21871)
+++ scummvm/trunk/engines/simon/vga.cpp	2006-04-14 05:15:11 UTC (rev 21872)
@@ -1389,12 +1389,12 @@
 
 	dst += _dxSurfacePitch * dstRect.top + dstRect.left;
 
-	for (int dstY = 0; dstY < h; dstY++) {
+	for (int dstY = 0; dstY < scaledH; dstY++) {
 		if (dstRect.top + dstY >= 0 && dstRect.top + dstY < _screenHeight) {
 			int srcY = (dstY * h) / scaledH;
 			byte *srcPtr = src + _dxSurfacePitch * srcY;
 			byte *dstPtr = dst + _dxSurfacePitch * dstY;
-			for (int dstX = 0; dstX < w; dstX++) {
+			for (int dstX = 0; dstX < scaledW; dstX++) {
 				if (dstRect.left + dstX >= 0 && dstRect.left + dstX < _screenWidth) {
 					int srcX = (dstX * w) / scaledW;
 					if (srcPtr[srcX])


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