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

Comparing ray/src/px/glimage.c (file contents):
Revision 1.2 by greg, Fri Jan 26 08:18:38 1990 UTC vs.
Revision 1.3 by greg, Thu Apr 18 14:35:08 1991 UTC

# Line 39 | Line 39 | char  *argv[];
39                  exit(1);
40          }
41                                  /* discard header */
42 <        getheader(input, NULL);
42 >        if (checkheader(input, COLRFMT, NULL) < 0) {
43 >                fprintf(stderr, "%s: not a Radiance picture\n", fname);
44 >                exit(1);
45 >        }
46                                  /* get picture dimensions */
47          if (fgetresolu(&xres, &yres, input) != (YMAJOR|YDECR)) {
48                  fprintf(stderr, "%s: bad picture size\n", fname);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines