From 1d6d841cf688af2f3c0c9b33bfefcedec3c9dbf7 Mon Sep 17 00:00:00 2001 From: triplus Date: Mon, 20 Apr 2020 20:59:16 +0200 Subject: [PATCH] NaviCube fix compiler warning Forum discussion: https://forum.freecadweb.org/viewtopic.php?f=10&t=45012 --- src/Gui/NaviCube.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Gui/NaviCube.cpp b/src/Gui/NaviCube.cpp index 244230e533..2690031d42 100644 --- a/src/Gui/NaviCube.cpp +++ b/src/Gui/NaviCube.cpp @@ -974,8 +974,8 @@ void NaviCubeImplementation::drawNaviCube(bool pickMode) { static GLubyte xbmp[] = { 0x11,0x11,0x0a,0x04,0x0a,0x11,0x11 }; glColor3f(1, 0, 0); glBegin(GL_LINES); - glVertex3f(-1.1 , -1.1, -1.1); - glVertex3f(+0.5 , -1.1, -1.1); + glVertex3f(-1.1f, -1.1f, -1.1f); + glVertex3f(+0.5f, -1.1f, -1.1f); glEnd(); glRasterPos3d(a, -a, -a); glBitmap(8, 7, 0, 0, 0, 0, xbmp); @@ -983,8 +983,8 @@ void NaviCubeImplementation::drawNaviCube(bool pickMode) { static GLubyte ybmp[] = { 0x04,0x04,0x04,0x04,0x0a,0x11,0x11 }; glColor3f(0, 1, 0); glBegin(GL_LINES); - glVertex3f(-1.1 , -1.1, -1.1); - glVertex3f(-1.1 , +0.5, -1.1); + glVertex3f(-1.1f, -1.1f, -1.1f); + glVertex3f(-1.1f, +0.5f, -1.1f); glEnd(); glRasterPos3d( -a, a, -a); glBitmap(8, 7, 0, 0, 0, 0, ybmp); @@ -992,8 +992,8 @@ void NaviCubeImplementation::drawNaviCube(bool pickMode) { static GLubyte zbmp[] = { 0x1f,0x10,0x08,0x04,0x02,0x01,0x1f }; glColor3f(0, 0, 1); glBegin(GL_LINES); - glVertex3f(-1.1 , -1.1, -1.1); - glVertex3f(-1.1 , -1.1, +0.5); + glVertex3f(-1.1f, -1.1f, -1.1f); + glVertex3f(-1.1f, -1.1f, +0.5f); glEnd(); glRasterPos3d( -a, -a, a); glBitmap(8, 7, 0, 0, 0, 0, zbmp);