--- ray/src/util/rpiece.c 2008/04/24 10:28:25 2.49 +++ 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.49 2008/04/24 10:28:25 schorsch 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. @@ -108,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); } @@ -136,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]); @@ -144,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; @@ -272,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);