From 5dcb0ba84f054d4857ed51fa30e724ddddaf3934 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 4 May 2022 08:49:33 -0700 Subject: [PATCH] smyrna: abbreviate some 'GLfloat' literals MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The `GLfloat` type is a 32-bit IEEE-754 floating point value¹ which is identical to what the C `float` type provides on all supported platforms. ¹ https://www.khronos.org/opengl/wiki/OpenGL_Type --- cmd/smyrna/gui/glcompui.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/smyrna/gui/glcompui.c b/cmd/smyrna/gui/glcompui.c index 9a4520087..b71543403 100644 --- a/cmd/smyrna/gui/glcompui.c +++ b/cmd/smyrna/gui/glcompui.c @@ -114,8 +114,7 @@ void switch2D3D(glCompObj *obj, GLfloat x, GLfloat y, view->active_camera = -1; /*set to camera */ glCompButtonShow(to3DBtn); glCompButtonHide(to2DBtn); - panBtn->common.callbacks.click((glCompObj*)panBtn, (GLfloat) 0, - (GLfloat) 0, + panBtn->common.callbacks.click((glCompObj*)panBtn, 0.0f, 0.0f, (glMouseButtonType) 0); img3D->common.visible = 0; -- 2.40.0