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

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

diff --git a/src/wcmUSB.c b/src/wcmUSB.c
index acce5ee..418ccbc 100644
--- a/src/wcmUSB.c
+++ b/src/wcmUSB.c
@@ -331,7 +331,7 @@ static struct
        { NTRIG_VENDOR_ID,  0x01, 44173, 36772, &usbTabletPC    },
 
        /* Add in Lenovo W700 Palmrest digitizer */
-       { LENOVO_VENDOR_ID, 0x6004, 2540, 2540, &usbTabletPC   } /* Pen-only */
+       { LENOVO_VENDOR_ID, 0x6004, 100000, 100000, &usbTabletPC   } /* 
Pen-only */
 };
 
 static Bool usbWcmInit(InputInfoPtr pInfo, char* id, float *version)
@@ -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


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to