summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJJ Ding <dgdunix@gmail.com>2011-12-28 14:46:02 +0800
committerPeter Hutterer <peter.hutterer@who-t.net>2012-01-03 09:00:14 +1000
commit3ec93218d2211420ede260e298ff5e23202556ff (patch)
tree6490b212a6602cb6377fe64dbf4f2197bac5a46c
parent9f9b55ab55ed5251c1607c59d8817231d076d82c (diff)
fix wrong finger width range
Signed-off-by: JJ Ding <dgdunix@gmail.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/eventcomm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/eventcomm.c b/src/eventcomm.c
index 40e9bdf..00dc532 100644
--- a/src/eventcomm.c
+++ b/src/eventcomm.c
@@ -253,7 +253,6 @@ static void
event_query_axis_ranges(InputInfoPtr pInfo)
{
SynapticsPrivate *priv = (SynapticsPrivate *)pInfo->private;
- struct input_absinfo abs = {0};
unsigned long absbits[NBITS(ABS_MAX)] = {0};
unsigned long keybits[NBITS(KEY_MAX)] = {0};
char buf[256] = {0};
@@ -316,7 +315,7 @@ event_query_axis_ranges(InputInfoPtr pInfo)
"device does not report pressure, will use touch data.\n");
if (priv->has_width)
xf86IDrvMsg(pInfo, X_PROBED, "finger width range %d - %d\n",
- abs.minimum, abs.maximum);
+ priv->minw, priv->maxw);
else
xf86IDrvMsg(pInfo, X_INFO,
"device does not report finger width.\n");