From: Matthew Fernandez Date: Sat, 23 Oct 2021 01:49:52 +0000 (-0700) Subject: smyrna: remove unused 'clipZ*' fields X-Git-Tag: 2.50.0~65^2~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd3ff4b24fa126ea9c65f07068078a7dc724df93;p=graphviz smyrna: remove unused 'clipZ*' fields --- diff --git a/cmd/smyrna/glexpose.c b/cmd/smyrna/glexpose.c index f04f35ac2..d4001280e 100644 --- a/cmd/smyrna/glexpose.c +++ b/cmd/smyrna/glexpose.c @@ -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, diff --git a/cmd/smyrna/smyrnadefs.h b/cmd/smyrna/smyrnadefs.h index 76fa4fd8e..20c9ca0fc 100644 --- a/cmd/smyrna/smyrnadefs.h +++ b/cmd/smyrna/smyrnadefs.h @@ -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;