ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/pfilt.c
(Generate patch)

Comparing ray/src/px/pfilt.c (file contents):
Revision 1.6 by greg, Sat Apr 29 09:22:54 1989 UTC vs.
Revision 1.7 by greg, Wed Sep 13 17:16:37 1989 UTC

# Line 190 | Line 190 | char  **argv;
190                                          /* add new header info. */
191          printargs(i, argv, stdout);
192                                          /* get picture size */
193 <        if (fscanf(fin, "-Y %d +X %d\n", &yres, &xres) != 2) {
193 >        if (fgetresolu(&xres, &yres, fin) != (YMAJOR|YDECR)) {
194                  fprintf(stderr, "%s: bad picture size\n", progname);
195                  quit(1);
196          }
# Line 345 | Line 345 | scan2init()                    /* prepare scanline arrays */
345          if (e < 1-1e-7 || e > 1+1e-7)           /* record exposure */
346                  printf("EXPOSURE=%e\n", e);
347          printf("\n");
348 <        printf("-Y %d +X %d\n", nrows, ncols);  /* write picture size */
348 >        fputresolu(YMAJOR|YDECR, ncols, nrows, stdout); /* resolution */
349   }
350  
351  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines