X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfc.c;h=9e086238955abb8d2ef197243e75f87c86b62819;hb=62df1dce783e73bb9c60d8ac3713f9a9ea854ef2;hp=745ec2ec00d846c7f7580b26d6a9b41b711651d6;hpb=b9319467a11d6cc449505955298e578571a220a1;p=swftools.git diff --git a/src/swfc.c b/src/swfc.c index 745ec2e..9e08623 100644 --- a/src/swfc.c +++ b/src/swfc.c @@ -681,7 +681,7 @@ static void s_endSWF() warning("Empty bounding box for movie"); } - if(do_cgi) + if(do_cgi || !strcmp(filename, "-")) fi = fileno(stdout); else fi = open(filename, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0644); @@ -1152,6 +1152,11 @@ void s_texture(char*name, char*object, int x, int y, float scalex, float scaley, fs->m.tx += p2.x; fs->m.ty += p2.y; } + if(bitmap) { + fs->m.sx *= 20; + fs->m.sy *= 20; + } + if(dictionary_lookup(&textures, name)) syntaxerror("texture %s defined twice", name);