--- ray/src/px/pfilt.c 1989/04/29 09:22:54 1.6 +++ ray/src/px/pfilt.c 1990/01/05 17:52:52 1.8 @@ -190,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); } @@ -343,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 */ }