summaryrefslogtreecommitdiffstats
path: root/freebsd/tdeartwork/files/patch-bp000-fix-ftbfs-on-c++11.diff
blob: fa74bbc4abc10798ef3e22de7e0b9dd2f30a4b3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/tdescreensaver/kdesavers/pendulum.cpp b/tdescreensaver/kdesavers/pendulum.cpp
index d285d2cf..83f77d70 100644
--- a/tdescreensaver/kdesavers/pendulum.cpp
+++ b/tdescreensaver/kdesavers/pendulum.cpp
@@ -227,9 +227,9 @@ void PendulumGLWidget::initializeGL(void)
    glLoadIdentity();
    // set positon of light0
    GLfloat lightPos[4]=
-      {lightR * sin(lightTheta) * sin(lightPhi),
-       lightR * sin(lightTheta) * cos(lightPhi),
-       lightR * cos(lightTheta),
+      {(GLfloat)(lightR * sin(lightTheta) * sin(lightPhi)),
+       (GLfloat)(lightR * sin(lightTheta) * cos(lightPhi)),
+       (GLfloat)(lightR * cos(lightTheta)),
        0};
    glLightfv(GL_LIGHT0, GL_POSITION, lightPos);
    // set positon of light1