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

Comparing ray/src/px/ra_pr.c (file contents):
Revision 1.2 by greg, Fri Sep 1 12:07:48 1989 UTC vs.
Revision 1.3 by greg, Tue Sep 12 13:04:34 1989 UTC

# Line 115 | Line 115 | char  *argv[];
115                                          /* put header */
116                  printargs(argc, argv, stdout);
117                  putchar('\n');
118 <                printf("-Y %d +X %d\n", ymax, xmax);
118 >                fputresolu(YMAJOR|YDECR, xmax, ymax, stdout);
119                                          /* convert file */
120                  pr2ra(&head);
121          } else {
# Line 187 | Line 187 | register struct rasterfile  *h;
187                  return(NULL);
188                                          /* discard header */
189          getheader(p->fp, NULL);
190 <        if (fscanf(p->fp, "-Y %d +X %d\n", &ymax, &xmax) != 2)
190 >        if (fgetresolu(&xmax, &ymax, p->fp) != (YMAJOR|YDECR))
191                  quiterr("bad picture size");
192          p->nexty = 0;
193          p->bytes_line = 0;              /* variable length lines */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines