--- ray/src/util/rpiece.c 2008/03/11 02:21:47 2.48 +++ ray/src/util/rpiece.c 2010/05/28 22:36:19 2.52 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rpiece.c,v 2.48 2008/03/11 02:21:47 greg Exp $"; +static const char RCSid[] = "$Id: rpiece.c,v 2.52 2010/05/28 22:36:19 greg Exp $"; #endif /* * Generate sections of a picture. @@ -9,11 +9,12 @@ static const char RCSid[] = "$Id: rpiece.c,v 2.48 2008 #include #include #include + +#include "platform.h" #ifndef NON_POSIX /* XXX need abstraction for process management */ #include #endif -#include "platform.h" #include "standard.h" #include "color.h" #include "view.h" @@ -107,7 +108,7 @@ main( while ((rval = expandarg(&argc, &argv, i)) > 0) ; if (rval < 0) { - fprintf(stderr, "%s: cannot expand '%s'", + fprintf(stderr, "%s: cannot expand '%s'\n", argv[0], argv[i]); exit(1); } @@ -135,6 +136,12 @@ main( } break; case 'p': /* pixel aspect ratio? */ + if (argv[i][2] == 'm') { + fprintf(stderr, "%s: -pm unsupported\n", + argv[0]); + ++i; + continue; + } if (argv[i][2] != 'a' || argv[i][3]) break; pixaspect = atof(argv[++i]); @@ -143,7 +150,7 @@ main( if (argv[i][2]) break; timelim = atof(argv[++i])*3600. + .5; - break; + continue; case 'x': /* overall x resolution */ if (argv[i][2]) break; @@ -271,6 +278,7 @@ init( /* set up output file and start rpict */ fputs(VIEWSTR, fp); fprintview(&ourview, fp); putc('\n', fp); + fputnow(fp); if (pixaspect < .99 || pixaspect > 1.01) fputaspect(pixaspect, fp); fputformat(COLRFMT, fp);