as a special case, when using only --dummy and --scale, also modify the
authorkramm <kramm>
Sat, 21 May 2005 17:02:18 +0000 (17:02 +0000)
committerkramm <kramm>
Sat, 21 May 2005 17:02:18 +0000 (17:02 +0000)
bounding box to reflect the new size.

src/swfcombine.c

index aae3e51..13ff224 100644 (file)
@@ -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);