git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46f30b0
)
new function swf_GetSWFBackgroundColor()
author
kramm
<kramm>
Sun, 27 Mar 2005 21:01:28 +0000
(21:01 +0000)
committer
kramm
<kramm>
Sun, 27 Mar 2005 21:01:28 +0000
(21:01 +0000)
lib/modules/swftools.c
patch
|
blob
|
history
diff --git
a/lib/modules/swftools.c
b/lib/modules/swftools.c
index
c33ba56
..
822fe38
100644
(file)
--- 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;
+}
+