xf86-input-mouse-float.diff

corecode, 01/23/2009 02:10 PM

Download (494 Bytes)

View differences:

src/mouse.c
2464 2464
    if (mousepriv) {
2465 2465
	mousepriv->fracdx += mousepriv->sensitivity*dx;
2466 2466
	mousepriv->fracdy += mousepriv->sensitivity*dy;
2467
	if (isnan(mousepriv->fracdx))
2468
		mousepriv->fracdx = 0;
2469
	if (isnan(mousepriv->fracdy))
2470
		mousepriv->fracdy = 0;
2467 2471
	mousepriv->fracdx -= ( dx=(int)(mousepriv->fracdx) );
2468 2472
	mousepriv->fracdy -= ( dy=(int)(mousepriv->fracdy) );
2469 2473
    }