From: Matthew Fernandez Date: Wed, 4 May 2022 15:49:33 +0000 (-0700) Subject: smyrna: abbreviate some 'GLfloat' literals X-Git-Tag: 4.0.0~47^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5dcb0ba84f054d4857ed51fa30e724ddddaf3934;p=graphviz smyrna: abbreviate some 'GLfloat' literals 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 --- 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;