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 2.1 by greg, Tue Nov 12 16:05:33 1991 UTC vs.
Revision 2.2 by greg, Mon Dec 23 22:35:34 1991 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines