From 2cfbc88cecba80338fe890bbf67d6a2b92275cf7 Mon Sep 17 00:00:00 2001 From: kramm Date: Sat, 21 May 2005 17:02:18 +0000 Subject: [PATCH] as a special case, when using only --dummy and --scale, also modify the bounding box to reflect the new size. --- src/swfcombine.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/swfcombine.c b/src/swfcombine.c index aae3e51..13ff224 100644 --- a/src/swfcombine.c +++ b/src/swfcombine.c @@ -1234,6 +1234,12 @@ int main(int argn, char *argv[]) combine(&master, slave_name[t], &slave, &newswf); master = newswf; } + if(config.dummy && !config.hassizex && !config.hassizey && !config.mastermovex && !config.mastermovey) { + newswf.movieSize.xmin = newswf.movieSize.xmin*config.masterscalex; + newswf.movieSize.ymin = newswf.movieSize.ymin*config.masterscaley; + newswf.movieSize.xmax = newswf.movieSize.xmax*config.masterscalex; + newswf.movieSize.ymax = newswf.movieSize.ymax*config.masterscaley; + } } fi = open(outputname, O_BINARY|O_RDWR|O_TRUNC|O_CREAT, 0777); -- 1.7.10.4