Commit 8bf66d402b9ccf74ad2785177ac5d4801ce749c2
1 parent
274fb0e1
Fix absolute mode mice.
width and height were never set which means that host coordinates were divided by -1 instead of (width - 1) / 0x7fff. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6476 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
1 deletions
sdl.c
... | ... | @@ -93,7 +93,9 @@ static void sdl_resize(DisplayState *ds) |
93 | 93 | if (gui_noframe) |
94 | 94 | flags |= SDL_NOFRAME; |
95 | 95 | |
96 | - real_screen = SDL_SetVideoMode(ds_get_width(ds), ds_get_height(ds), 0, flags); | |
96 | + width = ds_get_width(ds); | |
97 | + height = ds_get_height(ds); | |
98 | + real_screen = SDL_SetVideoMode(width, height, 0, flags); | |
97 | 99 | if (!real_screen) { |
98 | 100 | fprintf(stderr, "Could not open SDL display\n"); |
99 | 101 | exit(1); | ... | ... |