[Scummvm-cvs-logs] CVS: scummvm/backends/x11 x11.cpp,1.8,1.8.4.1

Jonathan Gray khalek at users.sourceforge.net
Sun May 25 05:39:03 CEST 2003


Update of /cvsroot/scummvm/scummvm/backends/x11
In directory sc8-pr-cvs1:/tmp/cvs-serv26192

Modified Files:
      Tag: branch-0-4-0
	x11.cpp 
Log Message:
add warp mouse to make x11 backend compile again

Index: x11.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/x11/x11.cpp,v
retrieving revision 1.8
retrieving revision 1.8.4.1
diff -u -d -r1.8 -r1.8.4.1
--- x11.cpp	13 Nov 2002 15:44:33 -0000	1.8
+++ x11.cpp	25 May 2003 12:38:21 -0000	1.8.4.1
@@ -71,6 +71,11 @@
 	// Set the position of the mouse cursor
 	void set_mouse_pos(int x, int y);
 
+	// Warp the mouse cursor. Where set_mouse_pos() only informs the
+	// backend of the mouse cursor's current position, this function
+	// actually moves the cursor to the specified position.
+	void warp_mouse(int x, int y);
+
 	// Set the bitmap that's used when drawing the cursor.
 	void set_mouse_cursor(const byte *buf, uint w, uint h, int hotspot_x, int hotspot_y);
 
@@ -728,6 +733,11 @@
 		}
 		_mouse_state_changed = true;
 	}
+}
+
+void OSystem_X11::warp_mouse(int x, int y)
+{
+	set_mouse_pos(x, y);
 }
 
 void OSystem_X11::set_mouse_cursor(const byte *buf, uint w, uint h, int hotspot_x, int hotspot_y)





More information about the Scummvm-git-logs mailing list