[Scummvm-cvs-logs] CVS: scummvm/sword2/driver _mouse.cpp,1.33,1.34 render.cpp,1.59,1.60

Torbj?rn Andersson eriktorbjorn at users.sourceforge.net
Wed Apr 7 05:45:06 CEST 2004


Update of /cvsroot/scummvm/scummvm/sword2/driver
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15408/driver

Modified Files:
	_mouse.cpp render.cpp 
Log Message:
Cleanup.


Index: _mouse.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/driver/_mouse.cpp,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- _mouse.cpp	28 Mar 2004 16:30:50 -0000	1.33
+++ _mouse.cpp	7 Apr 2004 12:31:31 -0000	1.34
@@ -64,13 +64,6 @@
 	return NULL;
 }
 
-void Graphics::resetRenderEngine(void) {
-	_parallaxScrollX = 0;
-	_parallaxScrollY = 0;
-	_scrollX = 0;
-	_scrollY = 0;
-}
-
 // FIXME: The original code used 0 for transparency, while our backend uses
 // 0xFF. That means that parts of the mouse cursor that weren't meant to be
 // transparent may be now.

Index: render.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/driver/render.cpp,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- render.cpp	28 Mar 2004 16:30:50 -0000	1.59
+++ render.cpp	7 Apr 2004 12:31:32 -0000	1.60
@@ -673,6 +673,17 @@
 }
 
 /**
+ * Reset scrolling stuff. This function is called from initBackground()
+ */
+
+void Graphics::resetRenderEngine(void) {
+	_parallaxScrollX = 0;
+	_parallaxScrollY = 0;
+	_scrollX = 0;
+	_scrollY = 0;
+}
+
+/**
  * Sets the scroll target position for the end of the game cycle. The driver
  * will then automatically scroll as many times as it can to reach this
  * position in the allotted time.





More information about the Scummvm-git-logs mailing list