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.4 by greg, Fri Oct 20 20:35:59 1989 UTC vs.
Revision 1.6 by greg, Fri Jan 26 08:17:31 1990 UTC

# Line 39 | Line 39 | char  *fname;
39          FILE  *input;
40          int  xres, yres;
41          COLR  scanline[NCOLS];
42        char  sbuf[256];
42          int  i;
43  
44          if (fname == NULL) {
# Line 50 | Line 49 | char  *fname;
49                  return(-1);
50          }
51                                  /* discard header */
52 <        while (fgets(sbuf, sizeof(sbuf), input) != NULL && sbuf[0] != '\n')
54 <                ;
52 >        getheader(input, NULL);
53                                  /* get picture dimensions */
54          if (fgetresolu(&xres, &yres, input) != (YMAJOR|YDECR)) {
55                  fprintf(stderr, "%s: bad picture size\n", fname);
# Line 69 | Line 67 | char  *fname;
67                          fprintf(stderr, "%s: read error (y=%d)\n", fname, i);
68                          return(-1);
69                  }
70 <                normcolrs(scanline, xres);
70 >                normcolrs(scanline, xres, 0);
71                  plotscan(scanline, xres, i);
72          }
73  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines