]> granicus.if.org Git - graphviz/commitdiff
smyrna menu_click_add_camera: remove unused 'p' parameter
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 28 Nov 2021 22:34:12 +0000 (14:34 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 5 Dec 2021 00:09:07 +0000 (16:09 -0800)
cmd/smyrna/gui/glcompui.c
cmd/smyrna/viewportcamera.c
cmd/smyrna/viewportcamera.h

index 1cc438e7e53e739f84bfe7d15a7da961791def8f..d283bde16ed67e0d47cf05f321fa1ea00e781b09 100644 (file)
@@ -100,7 +100,7 @@ void switch2D3D(glCompObj *obj, GLfloat x, GLfloat y,
        if (view->active_camera == -1) {
 
            if (view->camera_count == 0) {
-               menu_click_add_camera(obj);
+               menu_click_add_camera();
            } else {
                view->active_camera = 0;        /*set to camera */
            }
index 6304cc8e110c96c83bf87957f1b1300e3d343819..138c2104791025e71b02d4c17f08c9d56452ba5e 100644 (file)
@@ -32,7 +32,7 @@ static viewport_camera *add_camera_to_viewport(ViewInfo * view)
     return view->cameras[view->camera_count - 1];
 }
 
-void menu_click_add_camera(void *p)
+void menu_click_add_camera(void)
 {
     viewport_camera *c;
     /*add test cameras */
index 629779343583ef40262dfd8a23b48bd882ba6d24..590363af841b7703b755cbe34ca85d6b4a866f52 100644 (file)
@@ -13,4 +13,4 @@
 #include "smyrnadefs.h"
 #include <glcomp/glcompset.h>
 
-    extern void menu_click_add_camera(void *p);
+    extern void menu_click_add_camera(void);