|
From: Jason G. <kil...@gm...> - 2018-03-06 17:01:16
|
From: Daniel Ferguson <dan...@me...> 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 <dan...@me...> Signed-off-by: Jason Gerecke <jas...@wa...> --- Mailinglist review of the following pull request: https://github.com/linuxwacom/xf86-input-wacom/pull/12 src/wcmFilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.16.2 |