From 993e78d6c433f65bd8a87890a6bb6da480b2cdc4 Mon Sep 17 00:00:00 2001 From: Oldřich Jedlička Date: Tue, 12 Jan 2010 19:15:06 +0100 Subject: Fix typo in updateSlaveDeviceCoords MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The index [0] for the second valuator looks bogus; fix it. Signed-off-by: Oldřich Jedlička Reviewed-by: Peter Hutterer Signed-off-by: Peter Hutterer --- dix/getevents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dix') 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, -- cgit v1.2.3