summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-15 22:26:35 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-15 22:26:35 +0000
commitde5c2d0a1fd1668fe38bf88706c099b24407b079 (patch)
tree1529a827b05ab4fd17d6dab3a733f06c073124c8 /hw
parent08af02e25b3925f07ea236536955d40977661918 (diff)
downloadqemu-de5c2d0a1fd1668fe38bf88706c099b24407b079.tar.gz
Fix range in the hid report descriptor for USB tablet.
Should prevent the ugly wrapping due to a typo in an earlier commit. Fix by Gregor (gg@seh.de). git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5232 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r--hw/usb-hid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/usb-hid.c b/hw/usb-hid.c
index 3f8529a31c..406c9ab839 100644
--- a/hw/usb-hid.c
+++ b/hw/usb-hid.c
@@ -306,9 +306,9 @@ static const uint8_t qemu_tablet_hid_report_descriptor[] = {
0x09, 0x30, /* Usage (X) */
0x09, 0x31, /* Usage (Y) */
0x15, 0x00, /* Logical Minimum (0) */
- 0x26, 0xfe, 0x7f, /* Logical Maximum (0x7fff) */
+ 0x26, 0xff, 0x7f, /* Logical Maximum (0x7fff) */
0x35, 0x00, /* Physical Minimum (0) */
- 0x46, 0xfe, 0x7f, /* Physical Maximum (0x7fff) */
+ 0x46, 0xff, 0x7f, /* Physical Maximum (0x7fff) */
0x75, 0x10, /* Report Size (16) */
0x95, 0x02, /* Report Count (2) */
0x81, 0x02, /* Input (Data, Variable, Absolute) */