aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2011-06-20 12:21:33 +0200
committerGunnar Sletta <gunnar.sletta@nokia.com>2011-06-20 14:19:17 +0200
commit4b9f5c7600772ddd1e091c8780b1fd70e9ba5001 (patch)
treeda918570dea76500c145bc381f9f8bbed7389a28
parent447453f2dbe476964af423f35bb1876366923a9b (diff)
Compile when qreal is not a double
-rw-r--r--src/declarative/particles/qsgpointattractor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/particles/qsgpointattractor.cpp b/src/declarative/particles/qsgpointattractor.cpp
index 4c675237ba..0a893f7743 100644
--- a/src/declarative/particles/qsgpointattractor.cpp
+++ b/src/declarative/particles/qsgpointattractor.cpp
@@ -60,11 +60,11 @@ bool QSGPointAttractorAffector::affectParticle(QSGParticleData *d, qreal dt)
qreal ds = 0;
switch(m_proportionalToDistance){
case Quadratic:
- ds = (m_strength / qMax(1.,r*r)) * dt;
+ ds = (m_strength / qMax<qreal>(1.,r*r)) * dt;
break;
case Linear://also default
default:
- ds = (m_strength / qMax(1.,r)) * dt;
+ ds = (m_strength / qMax<qreal>(1.,r)) * dt;
}
dx = ds * cos(theta);
dy = ds * sin(theta);