diff options
Diffstat (limited to 'meta/packages/qemu/files/qemu-usb-wacom-pressure.patch')
-rw-r--r-- | meta/packages/qemu/files/qemu-usb-wacom-pressure.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/packages/qemu/files/qemu-usb-wacom-pressure.patch b/meta/packages/qemu/files/qemu-usb-wacom-pressure.patch new file mode 100644 index 0000000000..668d50d5f2 --- /dev/null +++ b/meta/packages/qemu/files/qemu-usb-wacom-pressure.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | --- qemu-cvs-ts-orig/hw/usb-wacom.c 2006-09-29 17:27:43.000000000 +0000 | ||
2 | +++ qemu-cvs-ts/hw/usb-wacom.c 2006-09-29 17:48:13.000000000 +0000 | ||
3 | @@ -203,16 +203,20 @@ static int usb_wacom_poll(USBWacomState | ||
4 | return 0; | ||
5 | |||
6 | buf[0] = s->mode; | ||
7 | - buf[1] = s->x & 0xff; | ||
8 | - buf[2] = s->x >> 8; | ||
9 | - buf[3] = s->y & 0xff; | ||
10 | - buf[4] = s->y >> 8; | ||
11 | if (b) { | ||
12 | + buf[1] = s->x & 0xff; | ||
13 | + buf[2] = s->x >> 8; | ||
14 | + buf[3] = s->y & 0xff; | ||
15 | + buf[4] = s->y >> 8; | ||
16 | buf[5] = 0x40; | ||
17 | buf[6] = 0; | ||
18 | } else { | ||
19 | + buf[1] = 0; | ||
20 | + buf[2] = 0; | ||
21 | + buf[3] = 0; | ||
22 | + buf[4] = 0; | ||
23 | buf[5] = 0x00; | ||
24 | - buf[6] = (unsigned char) -120; | ||
25 | + buf[6] = (unsigned char) -127; | ||
26 | } | ||
27 | |||
28 | return 7; | ||