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

Comparing ray/src/px/paintjet.c (file contents):
Revision 1.3 by greg, Fri Oct 20 20:36:13 1989 UTC vs.
Revision 1.5 by greg, Thu Apr 18 14:35:13 1991 UTC

# Line 48 | Line 48 | char  *fname;
48                  return(-1);
49          }
50                                  /* discard header */
51 <        getheader(input, NULL);
51 >        if (checkheader(input, COLRFMT, NULL) < 0) {
52 >                fprintf(stderr, "%s: not a Radiance picture\n", fname);
53 >                return(-1);
54 >        }
55                                  /* get picture dimensions */
56          if (fgetresolu(&xres, &yres, input) != (YMAJOR|YDECR)) {
57                  fprintf(stderr, "%s: bad picture size\n", fname);
# Line 67 | Line 70 | char  *fname;
70          for (i = yres-1; i >= 0; i--) {
71                  if (freadcolrs(scanline, xres, input) < 0)
72                          return(-1);
73 <                normcolrs(scanline, xres);
73 >                normcolrs(scanline, xres, 0);
74                  plotscan(scanline, xres, i);
75          }
76  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines