From 9ccb40ac70f2231782d8d5d746effcd031dad0e4 Mon Sep 17 00:00:00 2001 From: Simon Thum Date: Wed, 2 Feb 2011 00:03:44 +0100 Subject: [PATCH 3/4] dix: avoid FP promotion during pointer acceleration Signed-off-by: Simon Thum --- dix/ptrveloc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dix/ptrveloc.c b/dix/ptrveloc.c index e2b9e12..4fb6ef1 100644 --- a/dix/ptrveloc.c +++ b/dix/ptrveloc.c @@ -1106,11 +1106,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]; -- 1.7.3.4