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:
045aa1a
)
pass -X,-Y, -r options with preloader/viewer linking using command
author
kramm
<kramm>
Sun, 16 Dec 2001 02:58:20 +0000
(
02:58
+0000)
committer
kramm
<kramm>
Sun, 16 Dec 2001 02:58:20 +0000
(
02:58
+0000)
substitution.
pdf2swf/pdf2swf.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/pdf2swf.cc
b/pdf2swf/pdf2swf.cc
index
6763b7f
..
10735fd
100644
(file)
--- a/
pdf2swf/pdf2swf.cc
+++ b/
pdf2swf/pdf2swf.cc
@@
-37,7
+37,7
@@
int systemf(const char* format, ...)
vsprintf(buf, format, arglist);
va_end(arglist);
vsprintf(buf, format, arglist);
va_end(arglist);
- printf("%s:\n\n", buf);
+ printf("%s:\n", buf);
fflush(stdout);
return system(buf);
}
fflush(stdout);
return system(buf);
}
@@
-251,14
+251,19
@@
int main(int argn, char *argv[])
pdfswf_close();
pdfswf_close();
+ if(!viewer && preloader)
+ logf("<warning> --preloader option without --viewer option doesn't make very much sense.");
+ if(viewer || preloader)
+ printf("\n");
+
if(viewer) {
if(viewer) {
- systemf("swfcombine %s viewport=%s -o %s",
- viewer, outputname, outputname);
+ systemf("swfcombine `swfdump -XY %s` %s viewport=%s -o %s",
+ outputname, viewer, outputname, outputname);
printf("\n");
}
if(preloader) {
printf("\n");
}
if(preloader) {
- systemf("swfcombine %s/swfs/PreLoaderTemplate.swf loader=%s movie=%s -o %s",
- DATADIR, preloader, outputname, outputname);
+ systemf("swfcombine `swfdump -r %s` %s/swfs/PreLoaderTemplate.swf loader=%s movie=%s -o %s",
+ preloader, DATADIR, preloader, outputname, outputname);
printf("\n");
}
printf("\n");
}