From: kramm Date: Sat, 21 May 2005 17:02:18 +0000 (+0000) Subject: as a special case, when using only --dummy and --scale, also modify the X-Git-Tag: release-0-7-0~72 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=2cfbc88cecba80338fe890bbf67d6a2b92275cf7 as a special case, when using only --dummy and --scale, also modify the bounding box to reflect the new size. --- 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);