From b140c6821dd4f109d082b2217155535704ffbad5 Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 9 Sep 2007 17:52:46 +0000 Subject: [PATCH] fixed bug in text printing --- lib/modules/swftext.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/modules/swftext.c b/lib/modules/swftext.c index d7c0470..b559382 100644 --- a/lib/modules/swftext.c +++ b/lib/modules/swftext.c @@ -400,7 +400,7 @@ swf_FontExtract_DefineTextCallback(int id, SWFFONT * f, TAG * t, int jobs, SRECT r; MATRIX m; U8 gbits, abits; - int fid = 0; + int fid = -1; RGBA color; int x = 0, y = 0; int fontsize = 0; @@ -459,7 +459,6 @@ swf_FontExtract_DefineTextCallback(int id, SWFFONT * f, TAG * t, int jobs, adv = swf_GetBits(t, abits); xpos += adv; - // if (id == fid) { if (jobs & FEDTJ_PRINT) { int code = f->glyph2ascii[glyph]; @@ -467,12 +466,7 @@ swf_FontExtract_DefineTextCallback(int id, SWFFONT * f, TAG * t, int jobs, } if (jobs & FEDTJ_MODIFY) f->glyph[glyph].advance = adv * 20; //? - } else { - if (jobs & FEDTJ_PRINT) { - printf("?"); - } } - // buf[i] = glyph; } -- 1.7.10.4