The property code and wcmParseOptions should use the same condition for
readability. Outcome is the same - the pressure curve is applied only to
stylus and eraser.

Reported-by: Chris Bagwell <[email protected]>
Signed-off-by: Peter Hutterer <[email protected]>
---
 src/wcmValidateDevice.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/wcmValidateDevice.c b/src/wcmValidateDevice.c
index 5d8933d..14cb7ec 100644
--- a/src/wcmValidateDevice.c
+++ b/src/wcmValidateDevice.c
@@ -383,7 +383,7 @@ int wcmParseOptions(LocalDevicePtr local, unsigned long* 
keys)
         * Slightly raised curve might be 0,5,95,100
         */
        s = xf86SetStrOption(local->options, "PressCurve", NULL);
-       if (s && !IsCursor(priv) && !IsTouch(priv))
+       if (s && IsStylus(priv) && IsEraser(priv))
        {
                int a,b,c,d;
                if ((sscanf(s,"%d,%d,%d,%d",&a,&b,&c,&d) != 4) ||
-- 
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to