[PATCH 16/27] Input: Convert acceleration code to using ValuatorMask

Daniel Stone daniel at fooishbar.org
Mon Jun 6 04:16:32 PDT 2011


Hi,

On Sun, Jun 05, 2011 at 05:04:59PM +0200, Simon Thum wrote:
> On 06/03/2011 04:59 PM, Daniel Stone wrote:
> > Instead of passing a set of int* to the acceleration code, pass it a
> > mask instead, which avoids an unfortunate loss of precision.
> > 
> > Signed-off-by: Daniel Stone <daniel at fooishbar.org>
> > ---
> >  dix/getevents.c |   41 +++++++++++++++++-----------
> >  dix/ptrveloc.c  |   82 ++++++++++++++++---------------------------------------
> >  2 files changed, 49 insertions(+), 74 deletions(-)
> > 
> > diff --git a/dix/getevents.c b/dix/getevents.c
> > index b796000..2f8e137 100644
> > --- a/dix/getevents.c
> > +++ b/dix/getevents.c
> > @@ -727,17 +727,19 @@ moveAbsolute(DeviceIntPtr dev, int *x_out, int *y_out, ValuatorMask *mask)
> >  
> > [...]
> >  }
> 
> 
> The above seems to belong to another patch.

Whoops, good catch.

> Otherwise, consider this
> 
> Reviewed-by: Simon Thum <simon.thum at gmx.de>

Thanks!

Cheers,
Daniel


More information about the xorg-devel mailing list