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.6 by greg, Fri Jan 26 08:17:31 1990 UTC vs.
Revision 1.7 by greg, Thu Apr 18 14:35:09 1991 UTC

# Line 49 | Line 49 | char  *fname;
49                  return(-1);
50          }
51                                  /* discard header */
52 <        getheader(input, NULL);
52 >        if (checkheader(input, COLRFMT, NULL) < 0) {
53 >                fprintf(stderr, "%s: not a Radiance picture\n", fname);
54 >                return(-1);
55 >        }
56                                  /* get picture dimensions */
57          if (fgetresolu(&xres, &yres, input) != (YMAJOR|YDECR)) {
58                  fprintf(stderr, "%s: bad picture size\n", fname);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines