From 0288babb81e62bf607d8c2e428b577756b655fed Mon Sep 17 00:00:00 2001 From: kramm Date: Thu, 8 Apr 2004 20:05:27 +0000 Subject: [PATCH] * removed swf_FoldAllTags function, because it didn't handle SWF.firstTag correctly. * RFX tags are now always inserted at the beginning. --- lib/rfxswf.c | 10 +--------- lib/rfxswf.h | 1 - 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/rfxswf.c b/lib/rfxswf.c index f56427a..f67d951 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -1080,14 +1080,6 @@ void swf_FoldAll(SWF*swf) } } -void swf_FoldAllTags(TAG*tag) -{ - SWF swf; - memset(&swf, 0, sizeof(swf)); - swf.firstTag = tag; - swf_FoldAll(&swf); -} - void swf_UnFoldAll(SWF*swf) { TAG*tag = swf->firstTag; @@ -1223,7 +1215,7 @@ int swf_WriteSWF2(struct writer_t*writer, SWF * swf) // Writes SWF to file, if (swf->firstTag && swf_NextTag(swf->firstTag)) if (swf_GetTagID(swf_NextTag(swf->firstTag))!=ST_REFLEX) - swf_SetBlock(swf_InsertTag(swf->firstTag,ST_REFLEX),"rfx",3); + swf_SetBlock(swf_InsertTagBefore(swf, swf->firstTag,ST_REFLEX),"rfx",3); #endif // INSERT_RFX_TAG diff --git a/lib/rfxswf.h b/lib/rfxswf.h index 54c5968..4d4eb07 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -199,7 +199,6 @@ int swf_ReadHeader(struct reader_t*reader, SWF * swf); // Reads SWF Header vi // folding/unfolding: void swf_FoldAll(SWF*swf); -void swf_FoldAllTags(TAG*tag); void swf_UnFoldAll(SWF*swf); void swf_FoldSprite(TAG*tag); void swf_UnFoldSprite(TAG*tag); -- 1.7.10.4