From: erg Date: Thu, 14 May 2009 15:51:02 +0000 (+0000) Subject: Use node xsize, ysize rather than width and height X-Git-Tag: LAST_LIBGRAPH~32^2~2071 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=358e6bcabde67061a3857b9e3178f6bb0f8ecf1b;p=graphviz Use node xsize, ysize rather than width and height --- diff --git a/lib/ortho/maze.c b/lib/ortho/maze.c index c5965a34e..0d52d491b 100644 --- a/lib/ortho/maze.c +++ b/lib/ortho/maze.c @@ -145,6 +145,7 @@ static Dtdisc_t hdictDisc = { #define HORZ(g,e) ((g->nodes + e->v1)->isVert) #define BIG 16384 #define CHANSZ(w) (((w)-3)/2) +/* #define CHANSZ(w) (w) */ static void updateWt (cell* cp, sedge* ep, int sz) @@ -234,6 +235,8 @@ findSVert (sgraph* g, Dt_t* cdt, pointf p, snodeitem* ditems, boolean isVert) return n->np; } +/* mkMazeGraph: + */ static sgraph* mkMazeGraph (maze* mp, boxf bb) { @@ -350,6 +353,8 @@ mkMazeGraph (maze* mp, boxf bb) return g; } +/* mkMaze: + */ maze* mkMaze (graph_t* g) { @@ -367,8 +372,8 @@ mkMaze (graph_t* g) BB.LL.x = BB.LL.y = MAXDOUBLE; BB.UR.x = BB.UR.y = -MAXDOUBLE; for (n = agfstnode (g); n; n = agnxtnode(g,n)) { - w2 = 36.0*ND_width(n); - h2 = 36.0*ND_height(n); + w2 = ND_xsize(n)/2.0; + h2 = ND_ysize(n)/2.0; bb.LL.x = ND_coord(n).x - w2; bb.UR.x = ND_coord(n).x + w2; bb.LL.y = ND_coord(n).y - h2;