summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-21 01:09:16 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-21 01:09:16 +0000
commit4788f2d6305205cbe6cc11facb0107654c24fb57 (patch)
tree761f8e3da4854d7d93ca6d671778377a1576dfec
parentb46b96cbfda59c866f384f4a19e3f1a7bf6a8113 (diff)
downloadqemu-4788f2d6305205cbe6cc11facb0107654c24fb57.tar.gz
qemu-4788f2d6305205cbe6cc11facb0107654c24fb57.tar.bz2
qemu-4788f2d6305205cbe6cc11facb0107654c24fb57.zip
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
-rw-r--r--sdl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sdl.c b/sdl.c
index 843a6fc89a..0601b16d3f 100644
--- a/sdl.c
+++ b/sdl.c
@@ -86,7 +86,7 @@ static void sdl_setdata(DisplayState *ds)
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 @@ static void do_sdl_resize(int width, int height, int bpp)
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");