aboutsummaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-10 19:34:27 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-10 19:34:27 +0000
commitb94ed5772eb31e8fad4b823351e8152839bf722a (patch)
treeb6e766ae37a53576dda2c285a16b831d36e54af3 /sdl.c
parentGT64XXX: fix endianness issues: (diff)
downloadqemu-kvm-b94ed5772eb31e8fad4b823351e8152839bf722a.tar.gz
qemu-kvm-b94ed5772eb31e8fad4b823351e8152839bf722a.tar.bz2
qemu-kvm-b94ed5772eb31e8fad4b823351e8152839bf722a.zip
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
Diffstat (limited to 'sdl.c')
-rw-r--r--sdl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdl.c b/sdl.c
index edd173e06..1509397f1 100644
--- a/sdl.c
+++ b/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;