dix: avoid FP promotion during pointer acceleration
Signed-off-by: Simon Thum <simon.thum@gmx.de> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
006157f203
commit
31ddb7ef4f
|
@ -1084,11 +1084,11 @@ acceleratePointerPredictable(
|
|||
(float)dev->ptrfeed->ctrl.num /
|
||||
(float)dev->ptrfeed->ctrl.den);
|
||||
|
||||
if(mult != 1.0 || velocitydata->const_acceleration != 1.0) {
|
||||
if(mult != 1.0f || velocitydata->const_acceleration != 1.0f) {
|
||||
ApplySofteningAndConstantDeceleration( velocitydata,
|
||||
dx, dy,
|
||||
&fdx, &fdy,
|
||||
(mult > 1.0) && soften);
|
||||
(mult > 1.0f) && soften);
|
||||
|
||||
if (dx) {
|
||||
tmp = mult * fdx + dev->last.remainder[0];
|
||||
|
|
Loading…
Reference in New Issue