From: ellson Date: Thu, 30 Oct 2008 20:25:22 +0000 (+0000) Subject: change default bgcolor back to white even on devices that can handle truecolor X-Git-Tag: LAST_LIBGRAPH~32^2~2941 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a5a4347f694b5b05953784f38e5a6f896ec0dba;p=graphviz change default bgcolor back to white even on devices that can handle truecolor --- diff --git a/lib/common/emit.c b/lib/common/emit.c index 063227dc8..8b746cf5a 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -821,11 +821,11 @@ static void emit_background(GVJ_t * job, graph_t *g) { char *str; - /* if no bgcolor specified - first assume default of "transparent" */ + /* if no bgcolor specified - first assume default of "white" */ if (! ((str = agget(g, "bgcolor")) && str[0])) - str = "transparent"; + str = "white"; - /* if device has no truecolor support, change "transparent" (default or given) to "white" */ + /* if device has no truecolor support, change "transparent" to "white" */ if (! (job->flags & GVDEVICE_DOES_TRUECOLOR) && (streq(str, "transparent"))) str = "white";