[Scummvm-cvs-logs] CVS: scummvm/saga gfx.cpp,1.34,1.35

Max Horn fingolfin at users.sourceforge.net
Thu Nov 25 16:25:08 CET 2004


Update of /cvsroot/scummvm/scummvm/saga
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3039

Modified Files:
	gfx.cpp 
Log Message:
oops

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/gfx.cpp,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- gfx.cpp	25 Nov 2004 23:51:52 -0000	1.34
+++ gfx.cpp	26 Nov 2004 00:24:25 -0000	1.35
@@ -379,12 +379,12 @@
 	int min_y;
 	int max_y;
 
-	Point n_p1; /* 1 .. 2 */
-	Point n_p2; /* .    . */
-	Point n_p3; /* .    . */
-	Point n_p4; /* 4 .. 3 */
-
 	assert((ds != NULL) && (p1 != NULL) && (p2 != NULL));
+	
+	min_x = MIN(p1->x, p2->x);
+	max_x = MAX(p1->x, p2->x);
+	min_y = MIN(p1->y, p2->y);
+	max_y = MAX(p1->y, p2->y);
 
 	ds->frameRect(Common::Rect(min_x, min_y, max_x+1, max_y+1), color);
 





More information about the Scummvm-git-logs mailing list