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

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

# Line 53 | Line 53 | char  *fname;
53          while (fgets(sbuf, sizeof(sbuf), input) != NULL && sbuf[0] != '\n')
54                  ;
55                                  /* get picture dimensions */
56 <        if (fgets(sbuf, sizeof(sbuf), input) == NULL ||
57 <                        sscanf(sbuf, "-Y %d +X %d\n", &yres, &xres) != 2) {
56 >        if (fgetresolu(&xres, &yres, input) != (YMAJOR|YDECR)) {
57                  fprintf(stderr, "%s: bad picture size\n", fname);
58                  return(-1);
59          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines