From dd82884b517bc64671897b9f6a988d6268270623 Mon Sep 17 00:00:00 2001 From: kramm Date: Mon, 30 Oct 2006 09:52:31 +0000 Subject: [PATCH] added special handling for backgroundcolor in include --- src/swfc.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/swfc.c b/src/swfc.c index 8e7977b..3f08789 100644 --- a/src/swfc.c +++ b/src/swfc.c @@ -1520,13 +1520,17 @@ void s_includeswf(char*name, char*filename) level--; if(!level) break; - /* We simply dump all tags right after the sprite - header, relying on the fact that swf_OptimizeTagOrder() will - sort things out for us later. - We also rely on the fact that the imported SWF is well-formed. - */ - tag = swf_InsertTag(tag, ftag->id); - swf_SetBlock(tag, ftag->data, ftag->len); + + if(ftag->id != ST_SETBACKGROUNDCOLOR) { + /* We simply dump all tags right after the sprite + header, relying on the fact that swf_OptimizeTagOrder() will + sort things out for us later. + We also rely on the fact that the imported SWF is well-formed. + */ + tag = swf_InsertTag(tag, ftag->id); + swf_SetBlock(tag, ftag->data, ftag->len); + } + ftag = ftag->next; } if(!ftag) -- 1.7.10.4