]> granicus.if.org Git - graphviz/commitdiff
smyrna: abbreviate some 'GLfloat' literals
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 4 May 2022 15:49:33 +0000 (08:49 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 11 May 2022 00:02:19 +0000 (17:02 -0700)
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

index 9a452008713994dd59477a2a0c93e8b3e6ee21f8..b71543403136ab978fb02865b27d3196da29726b 100644 (file)
@@ -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;