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.5 by greg, Thu Apr 18 14:35:13 1991 UTC vs.
Revision 1.6 by greg, Mon May 6 13:14:26 1991 UTC

# Line 112 | Line 112 | register int  x;
112   register int  a;
113   {
114          static int  cerr[NCOLS][3];
115 <        static int  err[3];
115 >        static int  err[3], errp[3];
116          int  b;
117          register int  ison;
118  
119          b = col[a];
120 +        errp[a] = err[a];
121          err[a] += b + cerr[x][a];
122          ison = err[a] > 128;
123          if (ison) err[a] -= 256;
124 <        cerr[x][a] = err[a] /= 2;
124 >        err[a] /= 3;
125 >        cerr[x][a] = err[a] + errp[a];
126          return(ison);
127   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines