From f172287a9a86ed63768b02353902bd17adb512d6 Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 27 Mar 2005 21:01:28 +0000 Subject: [PATCH] new function swf_GetSWFBackgroundColor() --- lib/modules/swftools.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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; +} + -- 1.7.10.4