From: arif Date: Fri, 4 Apr 2008 20:26:03 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: LAST_LIBGRAPH~32^2~4379 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80b3161912cfa229dbefcfbdabba7a43280c02ff;p=graphviz *** empty log message *** --- diff --git a/cmd/smyrna/topview.c b/cmd/smyrna/topview.c index 19b4781f8..01b911a38 100755 --- a/cmd/smyrna/topview.c +++ b/cmd/smyrna/topview.c @@ -224,11 +224,10 @@ void drawTopViewGraph(Agraph_t * g) for (ind = 0; ind < view->Topview->Nodecount; ind++) { - /*if ((view->Topview->Nodes[ind].x/view->zoom*10*-1 > view->clipX1) + if ((view->Topview->Nodes[ind].x/view->zoom*10*-1 > view->clipX1) && (view->Topview->Nodes[ind].x/view->zoom*10*-1 < view->clipX2) && (view->Topview->Nodes[ind].y/view->zoom*10*-1 > view->clipY1) - && (view->Topview->Nodes[ind].y/view->zoom*10*-1 < view->clipY2))*/ - if(1) + && (view->Topview->Nodes[ind].y/view->zoom*10*-1 < view->clipY2)) { float zdepth; v = &view->Topview->Nodes[ind]; @@ -282,7 +281,7 @@ void drawTopViewGraph(Agraph_t * g) glBegin(GL_LINES); set_topview_options(); for (ind = 0; ind < view->Topview->Edgecount; ind++) { - /*if (((view->Topview->Edges[ind].x1/view->zoom*10*-1 > view->clipX1) + if (((view->Topview->Edges[ind].x1/view->zoom*10*-1 > view->clipX1) && (view->Topview->Edges[ind].x1/view->zoom*10*-1 < view->clipX2) && (view->Topview->Edges[ind].y1/view->zoom*10*-1 > view->clipY1) && (view->Topview->Edges[ind].y1/view->zoom*10*-1 < view->clipY2)) @@ -290,7 +289,7 @@ void drawTopViewGraph(Agraph_t * g) && (view->Topview->Edges[ind].x2/view->zoom*10*-1 < view->clipX2) && (view->Topview->Edges[ind].y2/view->zoom*10*-1 > view->clipY1) && (view->Topview->Edges[ind].y2/view->zoom*10*-1 < view->clipY2)) - )*/ + ) if(1) {