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

Comparing ray/src/px/pflip.c (file contents):
Revision 1.3 by greg, Wed Jan 9 12:21:09 1991 UTC vs.
Revision 1.4 by greg, Thu Apr 18 14:35:24 1991 UTC

# Line 52 | Line 52 | char   *argv[];
52                  exit(1);
53          }
54                                          /* transfer header */
55 <        copyheader(fin, stdout);
55 >        if (checkheader(fin, COLRFMT, stdout) < 0) {
56 >                fprintf(stderr, "%s: input not a Radiance picture\n",
57 >                                progname);
58 >                exit(1);
59 >        }
60                                          /* add new header info. */
61          printargs(i, argv, stdout);
62 +        fputformat(COLRFMT, stdout);
63          putchar('\n');
64                                          /* get picture size */
65          if (fgetresolu(&xres, &yres, fin) != (YMAJOR|YDECR)) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines