[Scummvm-cvs-logs] CVS: scummvm/scumm wiz_he.cpp,2.118,2.119

kirben kirben at users.sourceforge.net
Mon Jan 30 18:20:05 CET 2006


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

Modified Files:
	wiz_he.cpp 
Log Message:

Works fine now.


Index: wiz_he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/wiz_he.cpp,v
retrieving revision 2.118
retrieving revision 2.119
diff -u -d -r2.118 -r2.119
--- wiz_he.cpp	31 Jan 2006 00:46:20 -0000	2.118
+++ wiz_he.cpp	31 Jan 2006 02:19:14 -0000	2.119
@@ -121,9 +121,16 @@
 	getWizImageDim(resNum, state, w, h);
 
 	// set the transformation origin to the center of the image
-	pts[1].x = pts[2].x = w / 2 - 1;
-	pts[0].x = pts[0].y = pts[1].y = pts[3].x = -(w / 2);
-	pts[2].y = pts[3].y = h / 2 - 1;
+	if (_vm->_heversion >= 99) {
+		pts[0].x = pts[3].x = -(w / 2);
+		pts[1].x = pts[2].x = w / 2 - 1;
+		pts[0].y = pts[1].y = -(h / 2);
+		pts[2].y = pts[3].y = h / 2 - 1;
+	} else {
+		pts[1].x = pts[2].x = w / 2 - 1;
+		pts[0].x = pts[0].y = pts[1].y = pts[3].x = -(w / 2);
+		pts[2].y = pts[3].y = h / 2 - 1;
+	}
 
 	// scale
 	if (scale != 256) {





More information about the Scummvm-git-logs mailing list