git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug in --help output
[swftools.git]
/
src
/
swfcombine.c
diff --git
a/src/swfcombine.c
b/src/swfcombine.c
index
72d1147
..
cecffe1
100644
(file)
--- a/
src/swfcombine.c
+++ b/
src/swfcombine.c
@@
-161,6
+161,16
@@
int args_callback_option(char*name,char*val) {
config.scalex = config.scaley = atoi(val)/100.0;
return 1;
}
config.scalex = config.scaley = atoi(val)/100.0;
return 1;
}
+ else if (!strcmp(name, "w"))
+ {
+ config.scalex = atoi(val)/100.0;
+ return 1;
+ }
+ else if (!strcmp(name, "h"))
+ {
+ config.scaley = atoi(val)/100.0;
+ return 1;
+ }
else if (!strcmp(name, "t") || !strcmp(name, "T"))
{
if(master_filename) {
else if (!strcmp(name, "t") || !strcmp(name, "T"))
{
if(master_filename) {
@@
-1273,9
+1283,10
@@
int main(int argn, char *argv[])
if(config.zlib) {
if(newswf.fileVersion < 6)
newswf.fileVersion = 6;
if(config.zlib) {
if(newswf.fileVersion < 6)
newswf.fileVersion = 6;
- swf_WriteSWC(fi, &newswf);
+ newswf.compressed = 1;
+ swf_WriteSWF(fi, &newswf);
} else {
} else {
- newswf.compressed = 0;
+ newswf.compressed = -1; // don't compress
swf_WriteSWF(fi, &newswf);
}
close(fi);
swf_WriteSWF(fi, &newswf);
}
close(fi);