From 8bce59599f4a4fb3c99e758a93282b925c59a778 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 5416ef7..56ea809 100644 --- a/dix/ptrveloc.c +++ b/dix/ptrveloc.c @@ -1109,11 +1109,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