qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [6875] Fix absolute mouse events generated by SDL frontend.


From: Andrzej Zaborowski
Subject: [Qemu-devel] [6875] Fix absolute mouse events generated by SDL frontend.
Date: Sat, 21 Mar 2009 01:09:16 +0000

Revision: 6875
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6875
Author:   balrog
Date:     2009-03-21 01:09:16 +0000 (Sat, 21 Mar 2009)
Log Message:
-----------
Fix absolute mouse events generated by SDL frontend.

In r6839 ("DisplayAllocator interface") the "width" and "height" globals
stopped ever being assigned.  Note that last time absolute input stopped
working was for the same reason.

Modified Paths:
--------------
    trunk/sdl.c

Modified: trunk/sdl.c
===================================================================
--- trunk/sdl.c 2009-03-20 18:26:16 UTC (rev 6874)
+++ trunk/sdl.c 2009-03-21 01:09:16 UTC (rev 6875)
@@ -86,7 +86,7 @@
                                             ds->surface->pf.bmask, 
ds->surface->pf.amask);
 }
 
-static void do_sdl_resize(int width, int height, int bpp)
+static void do_sdl_resize(int new_width, int new_height, int bpp)
 {
     int flags;
 
@@ -98,6 +98,8 @@
     if (gui_noframe)
         flags |= SDL_NOFRAME;
 
+    width = new_width;
+    height = new_height;
     real_screen = SDL_SetVideoMode(width, height, bpp, flags);
     if (!real_screen) {
         fprintf(stderr, "Could not open SDL display\n");





reply via email to

[Prev in Thread] Current Thread [Next in Thread]