Commit 0b279da7 authored by Jason Gerecke's avatar Jason Gerecke Committed by Dmitry Torokhov

Input: wacom - scale up touch width and height values for Intuos Pro

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: default avatarJason Gerecke <killertofu@gmail.com>
Acked-by: default avatarPing Cheng <pingc@wacom.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent d0134e9f
...@@ -1151,8 +1151,8 @@ static void wacom_bpt3_touch_msg(struct wacom_wac *wacom, unsigned char *data) ...@@ -1151,8 +1151,8 @@ static void wacom_bpt3_touch_msg(struct wacom_wac *wacom, unsigned char *data)
int width, height; int width, height;
if (features->type >= INTUOSPS && features->type <= INTUOSPL) { if (features->type >= INTUOSPS && features->type <= INTUOSPL) {
width = data[5]; width = data[5] * 100;
height = data[6]; height = data[6] * 100;
} else { } else {
/* /*
* "a" is a scaled-down area which we assume is * "a" is a scaled-down area which we assume is
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment