X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fmodules%2Fswftext.c;h=8d61e0496b25516929dcea692eabac3b38a0a928;hp=90e44cb385ee1e3766ec7ac6955d09fc214efe71;hb=1b92dcdf739c6b827ac037ce74a9d9df0fc857a8;hpb=b729cfae5bbcb8a6721626ff63c3c7aaeab0dfa7 diff --git a/lib/modules/swftext.c b/lib/modules/swftext.c index 90e44cb..8d61e04 100644 --- a/lib/modules/swftext.c +++ b/lib/modules/swftext.c @@ -1201,11 +1201,12 @@ void swf_DrawText(drawer_t*draw, SWFFONT*font, char*text) while(*s) { SHAPE*shape; SHAPE2*shape2; + SHAPELINE*l; U32 c = readUTF8char(&s); int g = font->ascii2glyph[c]; shape = font->glyph[g].shape; shape2 = swf_ShapeToShape2(shape); - SHAPELINE*l = shape2->lines; + l = shape2->lines; while(l) { if(l->type == moveTo) { FPOINT to;