mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
Let the USB tablet reach the far bottom and right pixels
(Samuel Thibault) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4036 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
c6c99c3f17
commit
b94ed5772e
4 changed files with 6 additions and 6 deletions
4
sdl.c
4
sdl.c
|
@ -312,8 +312,8 @@ static void sdl_send_mouse_event(int dz)
|
|||
}
|
||||
|
||||
SDL_GetMouseState(&dx, &dy);
|
||||
dx = dx * 0x7FFF / width;
|
||||
dy = dy * 0x7FFF / height;
|
||||
dx = dx * 0x7FFF / (width - 1);
|
||||
dy = dy * 0x7FFF / (height - 1);
|
||||
} else if (absolute_enabled) {
|
||||
sdl_show_cursor();
|
||||
absolute_enabled = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue