diff options
author | Slávek Banko <[email protected]> | 2018-08-19 18:16:15 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-08-19 18:16:15 +0200 |
commit | 566332a92e7c3e189a2d875eac004ce15278308d (patch) | |
tree | d5218c411df89fb5085d12f821fb61c3d94f173c /tdescreensaver/kdesavers/pendulum.cpp | |
parent | f88db56fed3cf917e9a8f458840cb8169f2223e0 (diff) | |
download | tdeartwork-566332a92e7c3e189a2d875eac004ce15278308d.tar.gz tdeartwork-566332a92e7c3e189a2d875eac004ce15278308d.zip |
Fix FTBFS with stricter C++11
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'tdescreensaver/kdesavers/pendulum.cpp')
-rw-r--r-- | tdescreensaver/kdesavers/pendulum.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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 |