From: ellson Date: Fri, 25 Aug 2006 16:03:02 +0000 (+0000) Subject: Use "white" between dashes instead of "transparent" which came out black X-Git-Tag: LAST_LIBGRAPH~32^2~5942 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38ccc3ce39c78b6638ad70abb15e7cefb9969f95;p=graphviz Use "white" between dashes instead of "transparent" which came out black instead of being composited propperly. This won't be correct with non-white backgrounds. Too bad. Use cairo. --- diff --git a/plugin/gd/gvrender_gd.c b/plugin/gd/gvrender_gd.c index 7363c6ee4..6346d65ed 100644 --- a/plugin/gd/gvrender_gd.c +++ b/plugin/gd/gvrender_gd.c @@ -386,14 +386,14 @@ static int gdgen_set_penstyle(GVJ_t * job, gdImagePtr im, gdImagePtr brush) for (i = 0; i < 10; i++) dashstyle[i] = obj->pencolor.u.index; for (; i < 20; i++) - dashstyle[i] = transparent; + dashstyle[i] = white; gdImageSetStyle(im, dashstyle, 20); pen = gdStyled; } else if (obj->pen == PEN_DOTTED) { for (i = 0; i < 2; i++) dashstyle[i] = obj->pencolor.u.index; for (; i < 14; i++) - dashstyle[i] = transparent; + dashstyle[i] = white; gdImageSetStyle(im, dashstyle, 12); pen = gdStyled; } else {