new function isFolded().
authorkramm <kramm>
Fri, 24 Jan 2003 23:59:53 +0000 (23:59 +0000)
committerkramm <kramm>
Fri, 24 Jan 2003 23:59:53 +0000 (23:59 +0000)
lib/rfxswf.c
lib/rfxswf.h

index 93b17d9..2c6161e 100644 (file)
@@ -919,6 +919,11 @@ void swf_FoldSprite(TAG * t)
 //  t->prev = sprtag;
 }
 
+int swf_IsFolded(TAG * t)
+{
+    return (t->id == ST_DEFINESPRITE && t->len>4);
+}
+
 void swf_FoldAll(SWF*swf)
 {
     TAG*tag = swf->firstTag;
index 9fb2546..f2b36db 100644 (file)
@@ -177,6 +177,7 @@ void swf_FoldAll(SWF*swf);
 void swf_UnFoldAll(SWF*swf);
 void swf_FoldSprite(TAG*tag);
 void swf_UnFoldSprite(TAG*tag);
+int swf_IsFolded(TAG*tag);
 
 // tag reordering: