mirror of
https://github.com/xemu-project/xemu.git
synced 2025-01-31 17:23:53 +00:00
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
This commit is contained in:
parent
274fb0e1ed
commit
8bf66d402b
4
sdl.c
4
sdl.c
@ -93,7 +93,9 @@ static void sdl_resize(DisplayState *ds)
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user