Commit 649c90780834fedca892e08a27a3dde349e8b98d
1 parent
37b7842c
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. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6875 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
1 deletions
sdl.c
... | ... | @@ -86,7 +86,7 @@ static void sdl_setdata(DisplayState *ds) |
86 | 86 | ds->surface->pf.bmask, ds->surface->pf.amask); |
87 | 87 | } |
88 | 88 | |
89 | -static void do_sdl_resize(int width, int height, int bpp) | |
89 | +static void do_sdl_resize(int new_width, int new_height, int bpp) | |
90 | 90 | { |
91 | 91 | int flags; |
92 | 92 | |
... | ... | @@ -98,6 +98,8 @@ static void do_sdl_resize(int width, int height, int bpp) |
98 | 98 | if (gui_noframe) |
99 | 99 | flags |= SDL_NOFRAME; |
100 | 100 | |
101 | + width = new_width; | |
102 | + height = new_height; | |
101 | 103 | real_screen = SDL_SetVideoMode(width, height, bpp, flags); |
102 | 104 | if (!real_screen) { |
103 | 105 | fprintf(stderr, "Could not open SDL display\n"); | ... | ... |