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:
6f9968f
)
added filter implementation
author
kramm
<kramm>
Sun, 21 Jan 2007 18:58:26 +0000
(18:58 +0000)
committer
kramm
<kramm>
Sun, 21 Jan 2007 18:58:26 +0000
(18:58 +0000)
lib/modules/swfobject.c
patch
|
blob
|
history
diff --git
a/lib/modules/swfobject.c
b/lib/modules/swfobject.c
index
55b9b1c
..
c0abe75
100644
(file)
--- a/
lib/modules/swfobject.c
+++ b/
lib/modules/swfobject.c
@@
-136,7
+136,7
@@
void swf_SetPlaceObject(TAG * t,SWFPLACEOBJECT* obj)
flags2 = (0?PF2_ASBITMAP:0)|(obj->blendmode?PF2_BLENDMODE:0)|(obj->filters?PF2_FILTERS:0);
swf_SetU8(t,flags);
flags2 = (0?PF2_ASBITMAP:0)|(obj->blendmode?PF2_BLENDMODE:0)|(obj->filters?PF2_FILTERS:0);
swf_SetU8(t,flags);
- if(t->id == ST_PLACEOBJECT2)
+ if(t->id == ST_PLACEOBJECT3)
swf_SetU8(t,flags2);
swf_SetU16(t,obj->depth);
if (flags&PF_CHAR) swf_SetU16(t,obj->id);
swf_SetU8(t,flags2);
swf_SetU16(t,obj->depth);
if (flags&PF_CHAR) swf_SetU16(t,obj->id);
@@
-149,7
+149,10
@@
void swf_SetPlaceObject(TAG * t,SWFPLACEOBJECT* obj)
if (flags&PF_NAME) swf_SetString(t,obj->name);
if (flags2&PF2_FILTERS) {
if (flags&PF_NAME) swf_SetString(t,obj->name);
if (flags2&PF2_FILTERS) {
- // ...
+ swf_SetU8(t,obj->filters->num);
+ int s;
+ for(s=0;s<obj->filters->num;s++)
+ swf_SetFilter(t,obj->filters->filter[s]);
}
if (flags2&PF2_BLENDMODE)
swf_SetU8(t,obj->blendmode);
}
if (flags2&PF2_BLENDMODE)
swf_SetU8(t,obj->blendmode);