From: kramm Date: Sun, 27 Mar 2005 21:01:28 +0000 (+0000) Subject: new function swf_GetSWFBackgroundColor() X-Git-Tag: release-0-7-0~153 X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;ds=sidebyside;h=f172287a9a86ed63768b02353902bd17adb512d6;p=swftools.git new function swf_GetSWFBackgroundColor() --- diff --git a/lib/modules/swftools.c b/lib/modules/swftools.c index c33ba56..822fe38 100644 --- a/lib/modules/swftools.c +++ b/lib/modules/swftools.c @@ -1113,3 +1113,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; +} +