X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxtools.c;h=c9b81532cf61729a0510680ba779e05dd31a0db8;hp=3e565a107ab05062d2d27faae1e6e495a43ec28a;hb=1ec6bb9a0eb63847e814b987014b2f1afcb7def6;hpb=2773d91e9b8459c9f51070d78419cba75ba32bef diff --git a/lib/gfxtools.c b/lib/gfxtools.c index 3e565a1..c9b8153 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,8 +85,7 @@ 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) */ + fprintf(stderr, "Error: drawing startpoint is a spline\n"); linedraw_moveTo(d, 0, 0); }