]> granicus.if.org Git - graphviz/commitdiff
Use "white" between dashes instead of "transparent" which came out black
authorellson <devnull@localhost>
Fri, 25 Aug 2006 16:03:02 +0000 (16:03 +0000)
committerellson <devnull@localhost>
Fri, 25 Aug 2006 16:03:02 +0000 (16:03 +0000)
   instead of being composited propperly.   This won't be correct with
   non-white backgrounds.  Too bad.  Use cairo.

plugin/gd/gvrender_gd.c

index 7363c6ee43c6a79792bdb180821ed5dd8f518ba2..6346d65ed166dc1d3e4f348e878edf242c0ef832 100644 (file)
@@ -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 {