From: arif Date: Wed, 14 Apr 2010 20:20:29 +0000 (+0000) Subject: label locations fixed to center of nodes X-Git-Tag: LAST_LIBGRAPH~32^2~1357 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6537465bae0b81ba7513caa5acb62a39305d4354;p=graphviz label locations fixed to center of nodes --- diff --git a/cmd/smyrna/topviewfuncs.c b/cmd/smyrna/topviewfuncs.c index 7cd21c572..6fbfeff3e 100644 --- a/cmd/smyrna/topviewfuncs.c +++ b/cmd/smyrna/topviewfuncs.c @@ -307,7 +307,7 @@ void renderSelectedNodes(Agraph_t * g) if (ND_printLabel(v)==1) { glColor4f(c.R, c.G,c.B, c.A); - glprintfglut(view->glutfont,pos.x+nodeSize,pos.y+nodeSize,pos.z,agnameof(v)); + glprintfglut(view->glutfont,pos.x,pos.y,pos.z,agnameof(v)); } } @@ -525,9 +525,9 @@ void renderNodeLabels(Agraph_t * g) nodeSize = ND_size(v); glColor4f(c.R,c.G,c.B,c.A); if(!data_attr) - glprintfglut(view->glutfont,pos.x+nodeSize,pos.y+nodeSize,pos.z,agnameof(v)); + glprintfglut(view->glutfont,pos.x,pos.y,pos.z,agnameof(v)); else - glprintfglut(view->glutfont,pos.x+nodeSize,pos.y+nodeSize,pos.z,agxget(v,data_attr)); + glprintfglut(view->glutfont,pos.x,pos.y,pos.z,agxget(v,data_attr)); } }