From 42588d631825c2287f2a1b082f8825423ebb8e3d Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 17 Jun 2007 16:04:06 +0000 Subject: [PATCH] use flashtype if flashversion>=8 --- src/swfc.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/swfc.c b/src/swfc.c index 9e08623..34e731e 100644 --- a/src/swfc.c +++ b/src/swfc.c @@ -979,6 +979,15 @@ void s_text(char*name, char*fontname, char*text, int size, RGBA color) return; } r = swf_SetDefineText(tag, font, &color, text, size); + + if(stack[0].swf->fileVersion >= 8) { + tag = swf_InsertTag(tag, ST_CSMTEXTSETTINGS); + swf_SetU16(tag, id); + swf_SetU8(tag, /*grid*/(1<<3)|/*flashtype*/0x40); + swf_SetU32(tag, 0);//thickness + swf_SetU32(tag, 0);//sharpness + swf_SetU8(tag, 0);//reserved + } s_addcharacter(name, id, tag, r); incrementid(); @@ -1735,6 +1744,10 @@ void s_put(char*instance, char*character, parameters_t p) m = s_instancepos(i->character->size, &p); if(p.blendmode || p.filter) { + if(stack[0].swf->fileVersion < 8) { + if(p.blendmode) warning("blendmodes only supported for flash version>=8"); + else warning("filters only supported for flash version>=8"); + } tag = swf_InsertTag(tag, ST_PLACEOBJECT3); } else { tag = swf_InsertTag(tag, ST_PLACEOBJECT2); -- 1.7.10.4