[Scummvm-cvs-logs] CVS: scummvm/backends/sdl sdl-common.cpp,1.26,1.27

Max Horn fingolfin at users.sourceforge.net
Thu Jan 9 10:40:48 CET 2003


Update of /cvsroot/scummvm/scummvm/backends/sdl
In directory sc8-pr-cvs1:/tmp/cvs-serv29765/backends/sdl

Modified Files:
	sdl-common.cpp 
Log Message:
only warp mouse if it actually moved - this is not quite perfect, either, but at least now it works again on OS X

Index: sdl-common.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/sdl-common.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- sdl-common.cpp	9 Jan 2003 18:02:17 -0000	1.26
+++ sdl-common.cpp	9 Jan 2003 18:39:45 -0000	1.27
@@ -400,8 +400,8 @@
 }
 
 void OSystem_SDL_Common::warp_mouse(int x, int y) {
-	SDL_WarpMouse(x * _scaleFactor, y * _scaleFactor);
-//	set_mouse_pos(x, y);
+	if (_mouseCurState.x != x || _mouseCurState.y != y)
+		SDL_WarpMouse(x * _scaleFactor, y * _scaleFactor);
 }
 	
 void OSystem_SDL_Common::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