Project

General

Profile

Bug #1241 ยป xf86-input-mouse-float.diff

corecode, 01/23/2009 02:10 PM

View differences:

src/mouse.c
if (mousepriv) {
mousepriv->fracdx += mousepriv->sensitivity*dx;
mousepriv->fracdy += mousepriv->sensitivity*dy;
if (isnan(mousepriv->fracdx))
mousepriv->fracdx = 0;
if (isnan(mousepriv->fracdy))
mousepriv->fracdy = 0;
mousepriv->fracdx -= ( dx=(int)(mousepriv->fracdx) );
mousepriv->fracdy -= ( dy=(int)(mousepriv->fracdy) );
}
    (1-1/1)