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

Comparing ray/src/px/psum.c (file contents):
Revision 1.1 by greg, Thu Feb 2 10:49:30 1989 UTC vs.
Revision 1.2 by greg, Tue Sep 12 13:04:29 1989 UTC

# Line 96 | Line 96 | char  *argv[];
96                  fputs(":\n", stdout);
97                  getheader(fptr[nfile], tabputs);
98                                                  /* get picture size */
99 <                if (fscanf(fptr[nfile], "-Y %d +X %d\n", &yres, &xres) != 2) {
99 >                if (fgetresolu(&xres, &yres, fptr[nfile]) != (YMAJOR|YDECR)) {
100                          fprintf(stderr, "%s: bad picture size\n", progname);
101                          quit(1);
102                  } else if (nfile == 0) {
# Line 112 | Line 112 | char  *argv[];
112          }
113                                          /* add new header info. */
114          printargs(argc, argv, stdout);
115 <        printf("\n-Y %d +X %d\n", ysiz, xsiz);
115 >        putchar('\n');
116 >        fputresolu(YMAJOR|YDECR, xsiz, ysiz, stdout);
117  
118          psum();
119          

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines