]> granicus.if.org Git - graphviz/commitdiff
remove shadowing of view in glexpose_main
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 18 Apr 2021 23:46:35 +0000 (16:46 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 25 Apr 2021 18:58:20 +0000 (11:58 -0700)
cmd/smyrna/glexpose.c

index 2ec45b2df72e975befe4418910792baea4d3d15b..3a81e5a930ea00c24302f3fe096d0a6c2a878d7b 100644 (file)
@@ -155,13 +155,13 @@ static int glexpose_drawgraph(ViewInfo * vi)
        params:ViewInfo , global view variable defined in viewport.c
        return value:0 if something goes wrong with GL 1 , otherwise
 */
-int glexpose_main(ViewInfo * view)
+int glexpose_main(ViewInfo * vi)
 {
     static int doonce = 0;
-    if (!glupdatecamera(view))
+    if (!glupdatecamera(vi))
        return 0;
 
-    if (view->activeGraph >= 0) {
+    if (vi->activeGraph >= 0) {
        if (!doonce) {
            doonce = 1;
            btnToolZoomFit_clicked(NULL, NULL);
@@ -173,12 +173,12 @@ int glexpose_main(ViewInfo * view)
 
 
 
-    glexpose_grid(view);
-    drawBorders(view);
-    glexpose_drawgraph(view);
+    glexpose_grid(vi);
+    drawBorders(vi);
+    glexpose_drawgraph(vi);
     drawRotatingAxis();
-    draw_selpoly(&view->Topview->sel.selPoly);
-    glCompSetDraw(view->widgets);
+    draw_selpoly(&vi->Topview->sel.selPoly);
+    glCompSetDraw(vi->widgets);
 
         /*DEBUG*/ return 1;
 }