diff options
Diffstat (limited to 'examples/dynamicscene-cpp/examplescene.cpp')
-rw-r--r-- | examples/dynamicscene-cpp/examplescene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/dynamicscene-cpp/examplescene.cpp b/examples/dynamicscene-cpp/examplescene.cpp index fe0c46108..ca15b1a9f 100644 --- a/examples/dynamicscene-cpp/examplescene.cpp +++ b/examples/dynamicscene-cpp/examplescene.cpp @@ -80,7 +80,7 @@ void ExampleScene::buildScene() const float angle = M_PI * 2.0f * float(i) / count; entity->setAngle(angle); entity->setRadius(radius); - entity->setDiffuseColor(QColor(fabs(cosf(angle)) * 255, 204, 75)); + entity->setDiffuseColor(QColor(qFabs(qCos(angle)) * 255, 204, 75)); m_entities.append(entity); } } |