From: oetiker Date: Sun, 15 May 2005 14:16:15 +0000 (+0000) Subject: make transparent backgrounds work propperly X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0adc5d9d3854263125611972d92d4898ee90549f;p=rrdtool-all.git make transparent backgrounds work propperly git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@560 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index dbf418df..a3994910 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -2387,11 +2387,11 @@ graph_paint(image_desc_t *im, char ***calcpr) node=gfx_new_area ( im->canvas, 0, 0, - im->ximg, 0, - im->ximg, im->yimg, + 0, im->yimg, + im->ximg, im->yimg, im->graph_col[GRC_BACK]); - gfx_add_point(node,0, im->yimg); + gfx_add_point(node,im->ximg, 0); #ifdef WITH_PIECHART if (piechart != 2) { @@ -2645,7 +2645,7 @@ graph_paint(image_desc_t *im, char ***calcpr) return (-1); } } - gfx_render (im->canvas,im->ximg,im->yimg,0x0,fo); + gfx_render (im->canvas,im->ximg,im->yimg,0x00000000,fo); if (strcmp(im->graphfile,"-") != 0) fclose(fo); return 0;