summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c112f7c)
raw | patch | inline | side by side (parent: c112f7c)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 5 Apr 2005 22:49:55 +0000 (22:49 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 5 Apr 2005 22:49:55 +0000 (22:49 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@362 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_gfx.c | patch | blob | history |
diff --git a/src/rrd_gfx.c b/src/rrd_gfx.c
index 77a213c2f14e4906e4fd4dfd9c63299e90627b13..8d4a35c2c4187e4b74ad59252cc5c4b20ecdf4ba 100644 (file)
--- a/src/rrd_gfx.c
+++ b/src/rrd_gfx.c
case GFX_AREA: {
ArtVpath *vec,*pvec;
double dst[6];
- ArtSVP *svp,*usvp,*rsvp;
+ ArtSVP *svp,*svpt;
art_affine_scale(dst,canvas->zoom,canvas->zoom);
vec = art_vpath_affine_transform(node->path,dst);
if (node->closed_path)
if(node->type == GFX_LINE){
svp = art_svp_vpath_stroke ( pvec, ART_PATH_STROKE_JOIN_ROUND,
ART_PATH_STROKE_CAP_ROUND,
- node->size*canvas->zoom,1,1);
+ node->size*canvas->zoom,4,0.25);
} else {
- svp = art_svp_from_vpath ( pvec );
+ svp = art_svp_from_vpath ( pvec );
+ svpt = art_svp_uncross( svp );
+ art_free(svp);
+ svp = art_svp_rewind_uncrossed(svpt,ART_WIND_RULE_ODDEVEN);
+ art_free(svpt);
}
art_free(pvec);
- usvp=art_svp_uncross(svp);
- art_free(svp);
- rsvp=art_svp_rewind_uncrossed(usvp,ART_WIND_RULE_ODDEVEN);
- art_free(usvp);
- art_rgb_svp_alpha (rsvp ,0,0, pys_width, pys_height,
+ art_rgb_svp_alpha (svp ,0,0, pys_width, pys_height,
node->color, buffer, rowstride, NULL);
- art_free(rsvp);
+ art_free(svp);
break;
}
case GFX_TEXT: {