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

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

# Line 122 | Line 122 | char  *argv[];
122                                          /* put header */
123                  printargs(argc, argv, stdout);
124                  putchar('\n');
125 <                printf("-Y %d +X %d\n", ymax, xmax);
125 >                fputresolu(YMAJOR|YDECR, xmax, ymax, stdout);
126                                          /* convert file */
127                  tg2ra(&head);
128          } else {
# Line 280 | Line 280 | register struct hdStruct  *h;
280                  return(NULL);
281                                          /* discard header */
282          getheader(p->fp, NULL);
283 <        if (fscanf(p->fp, "-Y %d +X %d\n", &ymax, &xmax) != 2)
283 >        if (fgetresolu(&xmax, &ymax, p->fp) != (YMAJOR|YDECR))
284                  quiterr("bad picture size");
285          p->nexty = 0;
286          p->bytes_line = 0;              /* variable length lines */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines