summaryrefslogtreecommitdiff
path: root/dix/getevents.c
diff options
context:
space:
mode:
authorChase Douglas <chase.douglas@ubuntu.com>2010-11-15 11:42:11 -0500
committerPeter Hutterer <peter.hutterer@who-t.net>2010-11-19 11:11:04 +1000
commit463841f45aafd1227bac652965c9ea337dd527fa (patch)
tree0056c926d04d005ce9f056b8040af3a50ba7a924 /dix/getevents.c
parenta6b9e8f1e5d5d0b3b0f121a6f677eeca7aab1950 (diff)
Fix GPE Y axis scaling
Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix/getevents.c')
-rw-r--r--dix/getevents.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/getevents.c b/dix/getevents.c
index 9553728c7..bc5841fed 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -1139,7 +1139,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);