summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOldřich Jedlička <oldium.pro@seznam.cz>2010-01-12 19:15:06 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2010-02-01 15:27:42 +1000
commit993e78d6c433f65bd8a87890a6bb6da480b2cdc4 (patch)
tree25f3e3a2844fbe3d9f68b7e04e0f72a441eac6c8
parent52456c602c3cdd7d5eac677889a18fad37dfb7ae (diff)
Fix typo in updateSlaveDeviceCoords
The index [0] for the second valuator looks bogus; fix it. Signed-off-by: Oldřich Jedlička <oldium.pro@seznam.cz> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--dix/getevents.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/getevents.c b/dix/getevents.c
index bfde2e93f..82bb77b4b 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -296,7 +296,7 @@ updateSlaveDeviceCoords(DeviceIntPtr master, DeviceIntPtr pDev)
&pDev->last.remainder[0], NULL, pDev->valuator->axes + 0, scr->width);
if(pDev->valuator->numAxes > 1)
pDev->last.valuators[1] = rescaleValuatorAxis(pDev->last.valuators[1], pDev->last.remainder[1],
- &pDev->last.remainder[0], NULL, pDev->valuator->axes + 1, scr->height);
+ &pDev->last.remainder[1], NULL, pDev->valuator->axes + 1, scr->height);
/* calculate the other axis as well based on info from the old
* slave-device. If the old slave had less axes than this one,