]> granicus.if.org Git - graphviz/commitdiff
smyrna: remove unused 'clipZ*' fields
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 23 Oct 2021 01:49:52 +0000 (18:49 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 30 Oct 2021 00:20:28 +0000 (17:20 -0700)
cmd/smyrna/glexpose.c
cmd/smyrna/smyrnadefs.h

index f04f35ac2a135963e9afa0f8c35e19627a3e89ca..d4001280e51a8e4807b0be4ad9c85abdf186cb4a 100644 (file)
@@ -82,12 +82,9 @@ static int glupdatecamera(ViewInfo * vi)
     vi->clipX2=0;
     vi->clipY1=0;
     vi->clipY2=0;
-    vi->clipZ1=0;
-    vi->clipZ2=0;
-    GetOGLPosRef(1, vi->h - 5, &(vi->clipX1), &(vi->clipY1),
-                &(vi->clipZ1));
-    GetOGLPosRef(vi->w - 1, 1, &(vi->clipX2), &(vi->clipY2),
-                &(vi->clipZ2));
+    float ignored = 0;
+    GetOGLPosRef(1, vi->h - 5, &(vi->clipX1), &(vi->clipY1), &ignored);
+    GetOGLPosRef(vi->w - 1, 1, &(vi->clipX2), &(vi->clipY2), &ignored);
 
     if (vi->active_camera == -1) {
        glScalef(1 / vi->zoom * -1, 1 / vi->zoom * -1,
index 76fa4fd8e5a9221c9bfcd1034b093b837c2dcd96..20c9ca0fc266c1805b638a177d5deee2796c3e47 100644 (file)
@@ -501,7 +501,7 @@ typedef struct
        float zoom;
 
        /*clipping coordinates, to avoid unnecesarry rendering */
-       float clipX1, clipX2, clipY1, clipY2, clipZ1, clipZ2;
+       float clipX1, clipX2, clipY1, clipY2;
 
        /*background color */
        glCompColor bgColor;