From: Gunnar Sletta Date: Mon, 20 Jun 2011 10:21:33 +0000 (+0200) Subject: Compile when qreal is not a double X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=4b9f5c7600772ddd1e091c8780b1fd70e9ba5001;p=konrad%2Fqtdeclarative.git Compile when qreal is not a double --- diff --git a/src/declarative/particles/qsgpointattractor.cpp b/src/declarative/particles/qsgpointattractor.cpp index 4c67523..0a893f7 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(1.,r*r)) * dt; break; case Linear://also default default: - ds = (m_strength / qMax(1.,r)) * dt; + ds = (m_strength / qMax(1.,r)) * dt; } dx = ds * cos(theta); dy = ds * sin(theta);