From adc15e7ede2a26aeebacb71c8a11056da00de4db Mon Sep 17 00:00:00 2001 From: Jason Gerecke Date: Mon, 12 Mar 2012 22:15:43 -0700 Subject: [PATCH] --- yaml --- r: 293996 b: refs/heads/master c: 24e3e5ae1e4c2a3a32f5b1f96b4e3fd721806acd h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/input/tablet/wacom_sys.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 3e1ae864dba4..e4a04645f25d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7a0a1dfe9b319528ef8f681d610b8a49797ab475 +refs/heads/master: 24e3e5ae1e4c2a3a32f5b1f96b4e3fd721806acd diff --git a/trunk/drivers/input/tablet/wacom_sys.c b/trunk/drivers/input/tablet/wacom_sys.c index 7e63183a6c68..b59058998417 100644 --- a/trunk/drivers/input/tablet/wacom_sys.c +++ b/trunk/drivers/input/tablet/wacom_sys.c @@ -184,9 +184,9 @@ static int wacom_parse_logical_collection(unsigned char *report, * data before its overwritten. */ features->x_phy = - (features->x_max * features->x_resolution) / 100; + (features->x_max * 100) / features->x_resolution; features->y_phy = - (features->y_max * features->y_resolution) / 100; + (features->y_max * 100) / features->y_resolution; features->x_max = features->y_max = get_unaligned_le16(&report[10]);