Don't hardcode the defaults into the property code, use the stuff from
priv->nPressCtrl (the actual device's values) instead.

Reported-by: Chris Bagwell <ch...@cnpbagwell.com>
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net>
---
 src/wcmXCommand.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/wcmXCommand.c b/src/wcmXCommand.c
index e5b6e70..df3194b 100644
--- a/src/wcmXCommand.c
+++ b/src/wcmXCommand.c
@@ -186,10 +186,10 @@ void InitWcmDeviceProperties(LocalDevicePtr local)
        prop_rotation = InitWcmAtom(local->dev, WACOM_PROP_ROTATION, 8, 1, 
values);
 
        if (IsStylus(priv) || IsEraser(priv)) {
-               values[0] = 0;
-               values[1] = 0;
-               values[2] = 100;
-               values[3] = 100;
+               values[0] = priv->nPressCtrl[0];
+               values[1] = priv->nPressCtrl[1];
+               values[2] = priv->nPressCtrl[2];
+               values[3] = priv->nPressCtrl[3];
                prop_pressurecurve = InitWcmAtom(local->dev, 
WACOM_PROP_PRESSURECURVE, 32, 4, values);
        }
 
-- 
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