[Scummvm-cvs-logs] CVS: scummvm/backends/x11 x11.cpp,1.8,1.9
Jonathan Gray
khalek at users.sourceforge.net
Sun May 11 22:23:11 CEST 2003
Update of /cvsroot/scummvm/scummvm/backends/x11
In directory sc8-pr-cvs1:/tmp/cvs-serv20467
Modified Files:
x11.cpp
Log Message:
make x11 backend actually compile again, seems to cry about xshmputimage when I try to run it however
Index: x11.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/x11/x11.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- x11.cpp 13 Nov 2002 15:44:33 -0000 1.8
+++ x11.cpp 12 May 2003 05:22:46 -0000 1.9
@@ -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