From: Gunnar Sletta Date: Thu, 28 Jul 2011 11:26:51 +0000 (+0200) Subject: compile when qreal is a float X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=99309c5fcf0821ed4da69796b1a315cff7f48250;p=konrad%2Fqtdeclarative.git compile when qreal is a float Change-Id: I1e5c592f1cacb0a3a80e15b53011efb134db29f7 Reviewed-on: http://codereview.qt.nokia.com/2336 Reviewed-by: Gunnar Sletta --- diff --git a/src/declarative/particles/qsgtargetaffector.cpp b/src/declarative/particles/qsgtargetaffector.cpp index e7bbebe..d84bd4d 100644 --- a/src/declarative/particles/qsgtargetaffector.cpp +++ b/src/declarative/particles/qsgtargetaffector.cpp @@ -76,7 +76,7 @@ bool QSGTargetAffector::affectParticle(QSGParticleData *d, qreal dt) qreal vY = (target.y() - d->y) / tt; qreal w = 1 - (t / tt) + 0.05; - w = qMin(w, 1.0); + w = qMin(w, 1.0); qreal wvX = vX * w + d->vx * (1 - w); qreal wvY = vY * w + d->vy * (1 - w); //Screws with the acceleration so that the given start pos with the chosen weighted velocity will still end at the target coordinates