From 5b7eb774b61e53673dfbbf715a9df08cb9e00e8b Mon Sep 17 00:00:00 2001 From: kramm Date: Wed, 2 Jun 2004 19:16:24 +0000 Subject: [PATCH] fixed "connected h,a characters" bug. --- lib/modules/swfdraw.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/modules/swfdraw.c b/lib/modules/swfdraw.c index 66dfc7f..03b673c 100644 --- a/lib/modules/swfdraw.c +++ b/lib/modules/swfdraw.c @@ -98,13 +98,22 @@ static void swf_ShapeDrawerMoveTo(drawer_t*draw, FPOINT * to) SWFSHAPEDRAWER*sdraw = (SWFSHAPEDRAWER*)draw->internal; int x = to->x*20; int y = to->y*20; - if(sdraw->lastx != x || sdraw->lasty != y) { + + /* we need to write moveto always- it + might be that it signals the end of a polygon, otherwise + we would end up connecting two polygons which should + be seperate + TODO: check if the last operation was a moveTo- if + yes we *can* skip it. + */ + + //if(sdraw->lastx != x || sdraw->lasty != y) { fixEndPoint(draw); swf_ShapeSetMove(sdraw->tag,sdraw->shape,x,y); sdraw->firstx = sdraw->lastx = x; sdraw->firsty = sdraw->lasty = y; draw->pos = *to; - } + //} } static void swf_ShapeDrawerLineTo(drawer_t*draw, FPOINT * to) { -- 1.7.10.4