OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../xf86-input-mutouch/0001-Fix-calculation-of-coordinates-with-inverted-axes.patch
  5. # Copyright (C) 2010 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From 275bc1fc265604ba15264b7d915c1e5208842fa7 Mon Sep 17 00:00:00 2001
  17. From: Fernando Vicente <fvicente@gmail.com>
  18. Date: Fri, 16 Jan 2009 06:53:22 +0100
  19. Subject: [PATCH 1/2] Fix calculation of coordinates with inverted axes
  20. Signed-off-by: Julien Cristau <jcristau@debian.org>
  21. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
  22. ---
  23. src/xf86MuTouch.c | 4 ++--
  24. 1 files changed, 2 insertions(+), 2 deletions(-)
  25. diff --git a/src/xf86MuTouch.c b/src/xf86MuTouch.c
  26. index 82c2a25..2d5cdb0 100644
  27. --- a/src/xf86MuTouch.c
  28. +++ b/src/xf86MuTouch.c
  29. @@ -426,9 +426,9 @@ xf86MuTReadInput(LocalDevicePtr local)
  30. * or we will feed X with quite bogus event positions.
  31. */
  32. if (priv->x_inverted)
  33. - cur_x = priv->max_x - cur_x;
  34. + cur_x = priv->max_x - cur_x + priv->min_x;
  35. if (priv->y_inverted)
  36. - cur_y = priv->max_y - cur_y;
  37. + cur_y = priv->max_y - cur_y + priv->min_y;
  38. xf86PostMotionEvent(local_to_use->dev, TRUE, 0, 2, cur_x, cur_y);
  39. /*
  40. --
  41. 1.6.5.3