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.3 by greg, Fri Oct 20 16:44:32 1989 UTC vs.
Revision 1.4 by greg, Fri Oct 20 20:35:59 1989 UTC

# Line 69 | Line 69 | char  *fname;
69                          fprintf(stderr, "%s: read error (y=%d)\n", fname, i);
70                          return(-1);
71                  }
72 +                normcolrs(scanline, xres);
73                  plotscan(scanline, xres, i);
74          }
75  
# Line 117 | Line 118 | register int  x;
118   {
119          static int  cerr[NCOLS];
120          static int  err;
120        COLR  nclr;
121          int  b;
122          register int  isblack;
123  
124 <        colr_norm(clr, nclr);
125 <        b = norm_bright(nclr);
124 >        b = normbright(clr);
125          err += b + cerr[x];
126          isblack = err < 128;
127          if (!isblack) err -= 256;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines