]> granicus.if.org Git - graphviz/commitdiff
smyrna: remove unused 'frame_length' field
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 14 Oct 2021 03:03:09 +0000 (20:03 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 20 Oct 2021 23:59:04 +0000 (16:59 -0700)
cmd/smyrna/smyrnadefs.h
cmd/smyrna/topfisheyeview.c
cmd/smyrna/viewport.c

index f0b7f57adf647850c157522d4c6e5c8649051f3f..918dd7766785702f3a30999cf33bdaeb91d713ba 100644 (file)
@@ -617,7 +617,6 @@ typedef struct
        GTimer *timer3;
        int active_frame;
        int total_frames;
-       int frame_length;
        /*lately added */
        int drawnodes;
        int drawedges;
index 01182ccd22e789f45c72ec7efa94ce4a282dc934..93e022ffd22c06177dffb8c44c9bb638011938f1 100644 (file)
@@ -332,7 +332,7 @@ static int get_active_frame(topview * t)
     gdouble seconds;
     int fr;
     seconds = g_timer_elapsed(view->timer, &microseconds);
-    fr = (int) (seconds / ((double) view->frame_length / (double) 1000));
+    fr = (int)(seconds * 1000.0);
     if (fr < view->total_frames) {
 
        if (fr == view->active_frame)
index 5c77e13e86623bbd0738c39221eacb92ac77113a..872580ae5490cc39a9a575745d310a221c042218 100644 (file)
@@ -393,7 +393,6 @@ void init_viewport(ViewInfo * view)
     g_timer_stop(view->timer);
     view->active_frame = 0;
     view->total_frames = 1500;
-    view->frame_length = 1;
     /*add a call back to the main() */
     g_timeout_add_full((gint) G_PRIORITY_DEFAULT, (guint) 100,
                       gl_main_expose, NULL, NULL);