* [PATCH 1/4 v3] input: wacom - Scale up touch width and height values for Intuos Pro
@ 2013-11-15 19:58 Ping Cheng
0 siblings, 0 replies; only message in thread
From: Ping Cheng @ 2013-11-15 19:58 UTC (permalink / raw)
To: linux-input; +Cc: dmitry.torokhov, killertofu, chris, peter.hutterer
From: Signed-off-by: Jason Gerecke <killertofu@gmail.com>
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>
---
drivers/input/tablet/wacom_wac.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c
index 9c8eded..3f75f1d 100644
--- a/drivers/input/tablet/wacom_wac.c
+++ b/drivers/input/tablet/wacom_wac.c
@@ -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
--
1.8.3.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-11-15 19:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-15 19:58 [PATCH 1/4 v3] input: wacom - Scale up touch width and height values for Intuos Pro Ping Cheng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox