diff options
author | Fernando Vicente <fvicente@gmail.com> | 2009-01-16 06:53:22 +0100 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-01-16 16:03:39 +1000 |
commit | 301153d4c833590c8f5a19b9f0780c8426abb2d0 (patch) | |
tree | 9aea39f83bb7964472fa8528cc584d9776ccee38 | |
parent | b988e2ec8d7421f531f9d37f6bdb9653660c038d (diff) |
Fix calculation of coordinates with inverted axes
Signed-off-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/xf86MuTouch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xf86MuTouch.c b/src/xf86MuTouch.c index 82c2a25..2d5cdb0 100644 --- a/src/xf86MuTouch.c +++ b/src/xf86MuTouch.c @@ -426,9 +426,9 @@ xf86MuTReadInput(LocalDevicePtr local) * or we will feed X with quite bogus event positions. */ if (priv->x_inverted) - cur_x = priv->max_x - cur_x; + cur_x = priv->max_x - cur_x + priv->min_x; if (priv->y_inverted) - cur_y = priv->max_y - cur_y; + cur_y = priv->max_y - cur_y + priv->min_y; xf86PostMotionEvent(local_to_use->dev, TRUE, 0, 2, cur_x, cur_y); /* |