Signed-off-by: Ping Cheng <pingli...@gmail.com>
---
 src/wcmISDV4.c |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/wcmISDV4.c b/src/wcmISDV4.c
index 7080f5b..54d47ec 100644
--- a/src/wcmISDV4.c
+++ b/src/wcmISDV4.c
@@ -31,6 +31,10 @@
 
 #define RESET_RELATIVE(ds) do { (ds).relwheel = 0; } while (0)
 
+/* resolution in points/m */
+#define ISDV4_PEN_RESOLUTION    100000
+#define ISDV4_TOUCH_RESOLUTION  10000
+
 /* ISDV4 init process
    This process is the same for other backends (i.e. USB).
 
@@ -53,7 +57,6 @@
 
  */
 
-
 typedef struct {
        /* Counter for dependent devices. We can only send one QUERY command to
           the tablet and we must not send the SAMPLING command until the last
@@ -317,10 +320,10 @@ static void isdv4InitISDV4(WacomCommonPtr common, const 
char* id, float version)
        /* length of a packet */
        common->wcmPktLength = ISDV4_PKGLEN_TPCPEN;
 
-       /* digitizer X resolution in points/inch */
-       common->wcmResolX = 2540;       
-       /* digitizer Y resolution in points/inch */
-       common->wcmResolY = 2540;       
+       /* digitizer X resolution in points/m */
+       common->wcmResolX = ISDV4_PEN_RESOLUTION;       
+       /* digitizer Y resolution in points/m */
+       common->wcmResolY = ISDV4_PEN_RESOLUTION;       
 
        /* tilt disabled */
        common->wcmFlags &= ~TILT_ENABLED_FLAG;
@@ -510,7 +513,7 @@ static int isdv4GetRanges(InputInfoPtr pInfo)
                                (1 << reply.panel_resolution);
 
                if (reply.panel_resolution)
-                       common->wcmTouchResolX = common->wcmTouchResolY = 10;
+                       common->wcmTouchResolX = common->wcmTouchResolY = 
ISDV4_TOUCH_RESOLUTION;
 
                common->wcmVersion = reply.version;
                ret = Success;
-- 
1.7.3.5


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to