X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswftools.c;h=5881827156dc6bbf0ea3c4528346d7713e2b23bb;hb=92639540a5db28c4e5cbb87bad85fa4abb886308;hp=c33ba56f27b5267b43e91b32a90c3d9d10311f96;hpb=bd3501c4b3d1368e05a958af37f8fe5e55b35638;p=swftools.git diff --git a/lib/modules/swftools.c b/lib/modules/swftools.c index c33ba56..5881827 100644 --- a/lib/modules/swftools.c +++ b/lib/modules/swftools.c @@ -904,6 +904,14 @@ U8 swf_isShapeTag(TAG*tag) return 0; } +U8 swf_isPlaceTag(TAG*tag) +{ + if(tag->id == ST_PLACEOBJECT || + tag->id == ST_PLACEOBJECT2) + return 1; + return 0; +} + U8 swf_isImageTag(TAG*tag) { if(tag->id == ST_DEFINEBITSJPEG || @@ -1113,3 +1121,22 @@ void swf_SetDefineBBox(TAG * tag, SRECT newbbox) } } +RGBA swf_GetSWFBackgroundColor(SWF*swf) +{ + TAG*t=swf->firstTag; + RGBA color; + color.r = color.b = color.g = 0; + color.a = 255; + while(t) { + if(t->id == ST_SETBACKGROUNDCOLOR) { + swf_SetTagPos(t, 0); + color.r = swf_GetU8(t); + color.g = swf_GetU8(t); + color.b = swf_GetU8(t); + break; + } + t=t->next; + } + return color; +} +