Not sure where the 21 came from, maybe some old code that I copied when
doing the property work. Either way, my tablet alreay starts with 245 as
threshold, so a limit of 21 seems a tad low. The default is maxZ * 3/50.

Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net>
---
 src/wcmXCommand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/wcmXCommand.c b/src/wcmXCommand.c
index 0fd2ca0..3f250da 100644
--- a/src/wcmXCommand.c
+++ b/src/wcmXCommand.c
@@ -510,7 +510,7 @@ int wcmSetProperty(DeviceIntPtr dev, Atom property, 
XIPropertyValuePtr prop,
 
                value = *(CARD32*)prop->data;
 
-               if ((value < 1) || (value > 21))
+               if ((value < 1) || (value > common->wcmMaxZ))
                        return BadValue;
 
                if (!checkonly)
-- 
1.6.6.1


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to