[Scummvm-cvs-logs] CVS: scummvm/scumm camera.cpp,2.6,2.7

Max Horn fingolfin at users.sourceforge.net
Tue Jul 1 09:06:05 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv1817

Modified Files:
	camera.cpp 
Log Message:
fix for when we scroll while text is being displayed (text used to leave traces behind in that case)

Index: camera.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/camera.cpp,v
retrieving revision 2.6
retrieving revision 2.7
diff -u -d -r2.6 -r2.7
--- camera.cpp	14 Jun 2003 12:23:30 -0000	2.6
+++ camera.cpp	1 Jul 2003 15:21:51 -0000	2.7
@@ -336,6 +336,15 @@
 #else
 	virtscr[0].xstart = _screenStartStrip << 3;
 #endif
+
+	int dx = camera._cur.x - camera._last.x;
+	int dy = camera._cur.y - camera._last.y;
+	if (dx || dy) {
+		gdi._mask.left -= dx;
+		gdi._mask.right -= dx;
+		gdi._mask.top -= dy;
+		gdi._mask.bottom -= dy;
+	}
 }
 
 void Scumm::panCameraTo(int x, int y) {





More information about the Scummvm-git-logs mailing list