summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Ferguson <danielferguson@me.com>2018-03-05 18:57:35 +0000
committerJason Gerecke <killertofu@gmail.com>2018-03-07 10:03:34 -0800
commit0c27df7057c94dea4edece3c3e1462ac2a19b7a5 (patch)
tree3de91ed04000b1450a9c0e914f3eb88762a5b109
parent35047a3156be05b9ebc44ad4c43e0c9b62a85a03 (diff)
downloadxf86-input-wacom-0c27df7057c94dea4edece3c3e1462ac2a19b7a5.tar.gz
Fix tilt-y being overridden with tilt-x
Refactoring in (527fa95c29) introduced a typo in wcmFilterCoord which resulted in the value of tilt x being assigned to tilt y. Ref: https://github.com/linuxwacom/xf86-input-wacom/issues/11 Fixes: 527fa95c29 ("Refactor coordinate averaging to seperate function") Signed-off-by: Daniel Ferguson <danielferguson@me.com> Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/wcmFilter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wcmFilter.c b/src/wcmFilter.c
index 15ce1c8..c34b592 100644
--- a/src/wcmFilter.c
+++ b/src/wcmFilter.c
@@ -314,7 +314,7 @@ int wcmFilterCoord(WacomCommonPtr common, WacomChannelPtr pChannel,
else if (ds->tiltx < common->wcmTiltMinX)
ds->tiltx = common->wcmTiltMinX;
- ds->tilty = wcmFilterAverage(state->tiltx, common->wcmRawSample);
+ ds->tilty = wcmFilterAverage(state->tilty, common->wcmRawSample);
if (ds->tilty > common->wcmTiltMaxY)
ds->tilty = common->wcmTiltMaxY;
else if (ds->tilty < common->wcmTiltMinY)