X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fdevices%2Fswf.c;h=4bf636eb3c9e662729e4cb18dfba941ea812f21b;hp=0467bf7cd3a1ca3718d7e3c2d042b84ef8ee511a;hb=e0a27e1bd83ff2d60745dd6030e0f5ef7ef97b82;hpb=7be8967177293d3a0b4b8a286f16b740933ac583 diff --git a/lib/devices/swf.c b/lib/devices/swf.c index 0467bf7..4bf636e 100644 --- a/lib/devices/swf.c +++ b/lib/devices/swf.c @@ -2547,11 +2547,11 @@ static void swf_stroke(gfxdevice_t*dev, gfxline_t*line, gfxcoord_t width, gfxcol if(has_dots) gfxline_fix_short_edges(line); /* we need to convert the line into a polygon */ - gfxpoly_t* poly = gfxpoly_strokeToPoly(line, width, cap_style, joint_style, miterLimit); - gfxline_t*gfxline = gfxpoly_to_gfxline(poly); + gfxpoly_t* poly = gfxpoly_from_stroke(line, width, cap_style, joint_style, miterLimit, DEFAULT_GRID); + gfxline_t*gfxline = gfxline_from_gfxpoly(poly); dev->fill(dev, gfxline, color); gfxline_free(gfxline); - gfxpoly_free(poly); + gfxpoly_destroy(poly); return; }