[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,1.40,1.41

Max Horn fingolfin at users.sourceforge.net
Thu Oct 24 06:19:10 CEST 2002


Update of /cvsroot/scummvm/scummvm/scumm
In directory usw-pr-cvs1:/tmp/cvs-serv9009/scumm

Modified Files:
	gfx.cpp 
Log Message:
another hardcoded screen width

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- gfx.cpp	24 Oct 2002 06:28:54 -0000	1.40
+++ gfx.cpp	24 Oct 2002 13:18:28 -0000	1.41
@@ -2422,10 +2422,6 @@
 
 		assert(camera._cur.x >= (_realWidth / 2) && camera._cur.y >= (_realHeight / 2));
 
-		_screenStartStrip = (camera._cur.x - (_realWidth / 2)) >> 3;
-		_screenEndStrip = _screenStartStrip + gdi._numStrips - 1;
-		virtscr[0].xstart = _screenStartStrip << 3;
-
 		_screenLeft = camera._cur.x - (_realWidth / 2);
 		_screenTop = camera._cur.y - (_realHeight / 2);
 	} else {
@@ -2435,11 +2431,11 @@
 		} else if (camera._cur.x + (_realWidth / 2) >= _scrWidth) {
 			camera._cur.x = _scrWidth - (_realWidth / 2);
 		}
-
-		_screenStartStrip = (camera._cur.x >> 3) - 20;
-		_screenEndStrip = _screenStartStrip + gdi._numStrips - 1;
-		virtscr[0].xstart = _screenStartStrip << 3;
 	}
+
+	_screenStartStrip = (camera._cur.x - (_realWidth / 2)) >> 3;
+	_screenEndStrip = _screenStartStrip + gdi._numStrips - 1;
+	virtscr[0].xstart = _screenStartStrip << 3;
 }
 
 void Scumm::panCameraTo(int x, int y)





More information about the Scummvm-git-logs mailing list