[6476] Fix absolute mode mice.
Revision: 6476
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6476 Author: balrog Date: 2009-01-29 23:19:20 +0000 (Thu, 29 Jan 2009)
Log Message:
-----------
Fix absolute mode mice.
width and height were never set which means that host coordinates were divided by -1 instead of (width - 1) / 0x7fff.
Modified Paths:
--------------
trunk/sdl.c
Modified: trunk/sdl.c
===================================================================
sdl.c +3 -1
@@ -93,7 +93,9 @@if (gui_noframe) flags |=SDL_NOFRAME ; - real_screen =SDL_SetVideoMode (ds_get_width (ds),ds_get_height (ds),0 , flags); + width =ds_get_width (ds); + height =ds_get_height (ds); + real_screen =SDL_SetVideoMode (width, height,0 , flags);if (!real_screen) {fprintf (stderr,"Could not open SDL display\n" );exit (1 );