From 273f65229bab3f7218e077624851b5d1ed7f33b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 19 Aug 2018 18:16:15 +0200 Subject: Fix FTBFS with stricter C++11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 566332a92e7c3e189a2d875eac004ce15278308d) --- tdescreensaver/kdesavers/pendulum.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tdescreensaver') 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 -- cgit v1.2.1