X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fgfxtools.c;h=f754379e9e9ce4500168f657f1e3b47768ffea67;hb=7be8967177293d3a0b4b8a286f16b740933ac583;hp=3e565a107ab05062d2d27faae1e6e495a43ec28a;hpb=71b11cc925e384ecad5b0f48b511bcadc2867f9b;p=swftools.git diff --git a/lib/gfxtools.c b/lib/gfxtools.c index 3e565a1..f754379 100644 --- a/lib/gfxtools.c +++ b/lib/gfxtools.c @@ -62,9 +62,10 @@ static void linedraw_lineTo(gfxdrawer_t*d, gfxcoord_t x, gfxcoord_t y) gfxline_t*l = (gfxline_t*)rfx_alloc(sizeof(gfxline_t)); if(!i->start) { - /* starts with a line, not with a moveto. That needs we first - need an explicit moveto to (0,0) */ - linedraw_moveTo(d, 0, 0); + /* starts with a line, not with a moveto. As this is the first + entry in the list, this is probably *meant* to be a moveto */ + linedraw_moveTo(d, x, y); + return; } l->type = gfx_lineTo; @@ -84,9 +85,9 @@ static void linedraw_splineTo(gfxdrawer_t*d, gfxcoord_t sx, gfxcoord_t sy, gfxco gfxline_t*l = (gfxline_t*)rfx_alloc(sizeof(gfxline_t)); if(!i->start) { - /* starts with a line, not with a moveto. That needs we first - need an explicit moveto to (0,0) */ - linedraw_moveTo(d, 0, 0); + fprintf(stderr, "Error: drawing startpoint is a spline\n"); + linedraw_moveTo(d, x, y); + return; } l->type = gfx_splineTo;