]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
Input: wacom - scale up touch width and height values for Intuos Pro
authorJason Gerecke <killertofu@gmail.com>
Tue, 26 Nov 2013 02:43:16 +0000 (18:43 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 26 Nov 2013 03:03:36 +0000 (19:03 -0800)
The width and height values reported by the Intuos Pro are not in
surface units as required by the MT protocol. A simple multiplier
of 100x corrects it.

Signed-off-by: Jason Gerecke <killertofu@gmail.com>
Acked-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/tablet/wacom_wac.c

index 9c8eded2e504956a557403cc61b7be595e7a901b..3f75f1d3b348d68d16abc443d026876b390d7bd8 100644 (file)
@@ -1151,8 +1151,8 @@ static void wacom_bpt3_touch_msg(struct wacom_wac *wacom, unsigned char *data)
                int width, height;
 
                if (features->type >= INTUOSPS && features->type <= INTUOSPL) {
-                       width  = data[5];
-                       height = data[6];
+                       width  = data[5] * 100;
+                       height = data[6] * 100;
                } else {
                        /*
                         * "a" is a scaled-down area which we assume is