[Scummvm-cvs-logs] SF.net SVN: scummvm:[34490] scummvm/trunk/engines/drascula/graphics.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Thu Sep 11 11:37:43 CEST 2008


Revision: 34490
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34490&view=rev
Author:   thebluegr
Date:     2008-09-11 09:37:42 +0000 (Thu, 11 Sep 2008)

Log Message:
-----------
Cleanup

Modified Paths:
--------------
    scummvm/trunk/engines/drascula/graphics.cpp

Modified: scummvm/trunk/engines/drascula/graphics.cpp
===================================================================
--- scummvm/trunk/engines/drascula/graphics.cpp	2008-09-11 09:33:15 UTC (rev 34489)
+++ scummvm/trunk/engines/drascula/graphics.cpp	2008-09-11 09:37:42 UTC (rev 34490)
@@ -168,9 +168,7 @@
 	dest += xdes + ydes * 320;
 	src += xorg + yorg * 320;
 	for (int x = 0; x < height; x++) {
-		memcpy(dest, src, width);
-		dest += 320;
-		src += 320;
+		memcpy(dest + 320 * x, src + 320 * x, width);
 	}
 }
 
@@ -226,9 +224,7 @@
 	ptr += xdes + ydes * 320;
 	buffer += xorg + yorg * 320;
 	for (int x = 0; x < height; x++) {
-		memcpy(ptr, buffer, width);
-		ptr += 320;
-		buffer += 320;
+		memcpy(ptr + 320 * x, buffer + 320 * x, width);
 	}
 
 	_system->copyRectToScreen((const byte *)VGA, 320, 0, 0, 320, 200);


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