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

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

# Line 58 | Line 58 | char  *fname;
58                                  /* discard header */
59          getheader(input, NULL);
60                                  /* get picture dimensions */
61 <        if (fscanf(input, "-Y %d +X %d\n", &yres, &xres) != 2) {
61 >        if (fgetresolu(&xres, &yres, input) != (YMAJOR|YDECR)) {
62                  fprintf(stderr, "%s: bad picture size\n", fname);
63                  return(-1);
64          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines