[Scummvm-cvs-logs] SF.net SVN: scummvm: [29792] scummvm/trunk/engines/agi/picture.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sun Dec 9 15:48:36 CET 2007


Revision: 29792
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29792&view=rev
Author:   fingolfin
Date:     2007-12-09 06:48:36 -0800 (Sun, 09 Dec 2007)

Log Message:
-----------
cleanup

Modified Paths:
--------------
    scummvm/trunk/engines/agi/picture.cpp

Modified: scummvm/trunk/engines/agi/picture.cpp
===================================================================
--- scummvm/trunk/engines/agi/picture.cpp	2007-12-09 14:43:31 UTC (rev 29791)
+++ scummvm/trunk/engines/agi/picture.cpp	2007-12-09 14:48:36 UTC (rev 29792)
@@ -96,9 +96,7 @@
 
 	if (x1 == x2) {
 		if (y1 > y2) {
-			y = y1;
-			y1 = y2;
-			y2 = y;
+			SWAP(y1, y2);
 		}
 
 		for (; y1 <= y2; y1++)
@@ -111,9 +109,7 @@
 
 	if (y1 == y2) {
 		if (x1 > x2) {
-			x = x1;
-			x1 = x2;
-			x2 = x;
+			SWAP(x1, x2);
 		}
 		for (; x1 <= x2; x1++)
 			putVirtPixel(x1, y1);


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