We upscaled resolutions in WacomModelDesc and reported from
absinfos. But we forgot to update them for older kernels
that do not support resolution in absinfo.

Resolution received from kernel is in hundredths of a mm.
The scale we use here is in meter.

Signed-off-by: Ping Cheng <pi...@wacom.com>
---
 src/wcmUSB.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/wcmUSB.c b/src/wcmUSB.c
index acce5ee..5e6189c 100644
--- a/src/wcmUSB.c
+++ b/src/wcmUSB.c
@@ -572,7 +572,7 @@ int usbWcmGetRanges(InputInfoPtr pInfo)
        {
                if (is_touch)
                        common->wcmTouchResolX =
-                               (int)(((double)common->wcmMaxTouchX * 10.0
+                               (int)(((double)common->wcmMaxTouchX * 100000.0
                                 / (double)absinfo.maximum) + 0.5);
                else
                        common->wcmMaxStripX = absinfo.maximum;
@@ -661,7 +661,7 @@ int usbWcmGetRanges(InputInfoPtr pInfo)
        {
                if (is_touch)
                        common->wcmTouchResolY =
-                                (int)(((double)common->wcmMaxTouchY * 10.0
+                                (int)(((double)common->wcmMaxTouchY * 100000.0
                                 / (double)absinfo.maximum) + 0.5);
                else
                        common->wcmMaxStripY = absinfo.maximum;
-- 
1.7.10.4


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to