[PATCH] Fix typo in updateSlaveDeviceCoords

Peter Hutterer peter.hutterer at who-t.net
Tue Jan 12 19:29:27 PST 2010


On Tue, Jan 12, 2010 at 07:15:06PM +0100, Oldřich Jedlička wrote:
> The index [0] for the second valuator looks bogus; fix it.
> 
> Signed-off-by: Oldřich Jedlička <oldium.pro at seznam.cz>
> ---
>  dix/getevents.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/dix/getevents.c b/dix/getevents.c
> index bfde2e9..82bb77b 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,
> -- 
> 1.6.6

Merged, thanks.
 
Cheers,
  Peter


More information about the xorg-devel mailing list