Skip to content

Commit 0b279da

Browse files
jigpudtor
authored andcommitted
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: Jason Gerecke <[email protected]> Acked-by: Ping Cheng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent d0134e9 commit 0b279da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/input/tablet/wacom_wac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,8 +1151,8 @@ static void wacom_bpt3_touch_msg(struct wacom_wac *wacom, unsigned char *data)
11511151
int width, height;
11521152

11531153
if (features->type >= INTUOSPS && features->type <= INTUOSPL) {
1154-
width = data[5];
1155-
height = data[6];
1154+
width = data[5] * 100;
1155+
height = data[6] * 100;
11561156
} else {
11571157
/*
11581158
* "a" is a scaled-down area which we assume is

0 commit comments

Comments
 (0)