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 (from parent 1:
137aac4
)
added fileAttributes adjustment
author
kramm
<kramm>
Mon, 13 Oct 2008 14:09:36 +0000
(14:09 +0000)
committer
kramm
<kramm>
Mon, 13 Oct 2008 14:09:36 +0000
(14:09 +0000)
src/swfcombine.c
patch
|
blob
|
history
diff --git
a/src/swfcombine.c
b/src/swfcombine.c
index
1204cc1
..
a1437c1
100644
(file)
--- a/
src/swfcombine.c
+++ b/
src/swfcombine.c
@@
-314,6
+314,7
@@
static void makestackmaster(SWF*swf)
SRECT box;
int fileversion = config.zlib?6:3;
int frameRate = 256;
SRECT box;
int fileversion = config.zlib?6:3;
int frameRate = 256;
+ U32 fileAttributes = 0;
RGBA rgb;
rgb.r=rgb.b=rgb.g=0;
memset(&box, 0, sizeof(box));
RGBA rgb;
rgb.r=rgb.b=rgb.g=0;
memset(&box, 0, sizeof(box));
@@
-331,7
+332,9
@@
static void makestackmaster(SWF*swf)
}
close(fi);
swf_RemoveJPEGTables(&head);
}
close(fi);
swf_RemoveJPEGTables(&head);
+ fileAttributes |= head.fileAttributes;
removeCommonTags(&head);
removeCommonTags(&head);
+
msg("<verbose> File %s has bounding box %d:%d:%d:%d\n",
slave_filename[t],
head.movieSize.xmin, head.movieSize.ymin,
msg("<verbose> File %s has bounding box %d:%d:%d:%d\n",
slave_filename[t],
head.movieSize.xmin, head.movieSize.ymin,
@@
-371,6
+374,7
@@
static void makestackmaster(SWF*swf)
swf->fileVersion = fileversion;
swf->movieSize = box;
swf->frameRate = frameRate;
swf->fileVersion = fileversion;
swf->movieSize = box;
swf->frameRate = frameRate;
+ swf->fileAttributes = fileAttributes;
swf->firstTag = swf_InsertTag(0, ST_SETBACKGROUNDCOLOR);
tag = swf->firstTag;
swf->firstTag = swf_InsertTag(0, ST_SETBACKGROUNDCOLOR);
tag = swf->firstTag;
@@
-1069,6
+1073,8
@@
void combine(SWF*master, char*slave_name, SWF*slave, SWF*newswf)
if(!master->fileVersion && slave)
master->fileVersion = slave->fileVersion;
if(!master->fileVersion && slave)
master->fileVersion = slave->fileVersion;
+
+ master->fileAttributes |= slave->fileAttributes;
swf_FoldAll(master);
swf_FoldAll(slave);
swf_FoldAll(master);
swf_FoldAll(slave);