[RFC XI 2.1 - xserver 1/9] Fix GPE Y axis scaling

Chase Douglas chase.douglas at canonical.com
Fri Nov 12 14:35:02 PST 2010


From: Chase Douglas <chase.douglas at ubuntu.com>

Signed-off-by: Chase Douglas <chase.douglas at canonical.com>
---
 dix/getevents.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dix/getevents.c b/dix/getevents.c
index 9b5e6df..d2f1025 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -1150,7 +1150,7 @@ GetPointerEvents(EventList *events, DeviceIntPtr pDev, int type, int buttons,
             }
             if (valuator_mask_isset(&mask, 1))
             {
-                scaled = rescaleValuatorAxis(valuator_mask_get(&mask, 0),
+                scaled = rescaleValuatorAxis(valuator_mask_get(&mask, 1),
                                              0.0, &y_frac, NULL,
                                              pDev->valuator->axes + 1,
                                              scr->height);
-- 
1.7.1



More information about the xorg-devel mailing list