summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex/qtriangulatingstroker.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-10-26 07:36:38 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-10-26 08:59:52 (GMT)
commit6c83dadea241f2e52d0cbcfa5c81e43c7eaeb90f (patch)
tree49085e7e186175740509a57b4f0825322f2433ca /src/opengl/gl2paintengineex/qtriangulatingstroker.cpp
parent9a1ee410d24321e7eedaea6bb4f1b21fcc6fb427 (diff)
downloadQt-6c83dadea241f2e52d0cbcfa5c81e43c7eaeb90f.zip
Qt-6c83dadea241f2e52d0cbcfa5c81e43c7eaeb90f.tar.gz
Qt-6c83dadea241f2e52d0cbcfa5c81e43c7eaeb90f.tar.bz2
Kill a tiny few sin/cos/sqrt calls in the new stroker
Reviewed-by: Eskil
Diffstat (limited to 'src/opengl/gl2paintengineex/qtriangulatingstroker.cpp')
-rw-r--r--src/opengl/gl2paintengineex/qtriangulatingstroker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opengl/gl2paintengineex/qtriangulatingstroker.cpp b/src/opengl/gl2paintengineex/qtriangulatingstroker.cpp
index a3c8266..a5a743f 100644
--- a/src/opengl/gl2paintengineex/qtriangulatingstroker.cpp
+++ b/src/opengl/gl2paintengineex/qtriangulatingstroker.cpp
@@ -130,8 +130,8 @@ void QTriangulatingStroker::process(const QVectorPath &path, const QPen &pen)
if (m_roundness > 24)
m_roundness = 24;
- m_sin_theta = qSin(Q_PI / m_roundness); // ### Use qFastSin
- m_cos_theta = qCos(Q_PI / m_roundness);
+ m_sin_theta = qFastSin(Q_PI / m_roundness);
+ m_cos_theta = qFastCos(Q_PI / m_roundness);
const qreal *endPts = pts + (count<<1);
const qreal *startPts;