--- ray/src/px/pfilt.c 1989/04/13 07:52:50 1.5 +++ ray/src/px/pfilt.c 1990/01/05 17:52:52 1.8 @@ -128,6 +128,9 @@ char **argv; case '1': singlepass = 1; break; + case '2': + singlepass = 0; + break; case 'p': npts = atoi(argv[++i]) / 2; break; @@ -187,7 +190,7 @@ char **argv; /* add new header info. */ printargs(i, argv, stdout); /* get picture size */ - if (fscanf(fin, "-Y %d +X %d\n", &yres, &xres) != 2) { + if (fgetresolu(&xres, &yres, fin) != (YMAJOR|YDECR)) { fprintf(stderr, "%s: bad picture size\n", progname); quit(1); } @@ -340,9 +343,9 @@ scan2init() /* prepare scanline arrays */ } e = bright(exposure); if (e < 1-1e-7 || e > 1+1e-7) /* record exposure */ - printf("EXPOSURE=%e\n", e); + fputexpos(e, stdout); printf("\n"); - printf("-Y %d +X %d\n", nrows, ncols); /* write picture size */ + fputresolu(YMAJOR|YDECR, ncols, nrows, stdout); /* resolution */ }