]> granicus.if.org Git - graphviz/commitdiff
remove unused parameter from glmotion_zoom
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 12 Apr 2021 04:32:18 +0000 (21:32 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 18 Apr 2021 19:12:54 +0000 (12:12 -0700)
cmd/smyrna/glmotion.c
cmd/smyrna/glmotion.h
cmd/smyrna/gltemplate.c

index 75e73cd0ae9ec1e8768d3860a64cdd03de703fdf..0d39a1e807caed6ba78ce0f3cea2ec9b70f3ac4e 100644 (file)
@@ -52,7 +52,7 @@ void glmotion_zoom_inc(int zoomin)
 
 }
 
-void glmotion_zoom(ViewInfo * v)
+void glmotion_zoom(void)
 {
     float real_zoom;
     if (view->active_camera == -1) {
index 302ee1d5cd0ab868c2c5bb15bb99a9dbc6f0a74f..8d92de2c28ddba58ced4b42161ada0a78428dfe1 100644 (file)
@@ -17,7 +17,7 @@
 extern "C" {
 #endif
 
-    void glmotion_zoom(ViewInfo * v);
+    void glmotion_zoom(void);
     void glmotion_pan(ViewInfo * v);
     void glmotion_zoom_inc(int zoomin);
 
index c33d7bd475f6d0795350900961b737aee7c8a30c..1e6af429b23ddf32603e4c2769b63fae4169e2ea 100644 (file)
@@ -333,7 +333,7 @@ scroll_event(GtkWidget * widget, GdkEventScroll * event, gpointer data)
            view->mouse.dragX = -30;
        if (event->direction == 1)
            view->mouse.dragX = +30;
-       glmotion_zoom(view);
+       glmotion_zoom();
        glexpose();
        g_timer_start(view->timer2);