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

Comparing ray/src/px/oki20c.c (file contents):
Revision 1.3 by greg, Fri Oct 20 10:28:59 1989 UTC vs.
Revision 1.5 by greg, Fri Oct 20 13:53:58 1989 UTC

# Line 110 | Line 110 | int  y;
110                          putchar(len & 255);
111                          putchar(len >> 8);
112                          for (i = 0; i < len; i++) {
113 <                                if (y!=0 & i+j) {       /* knit bit */
114 <                                        c = pat[i][j];
115 <                                        pat[i][j] = colbit(scan[i],i,j) << 23;
116 <                                } else {
117 <                                        c = pat[i][j] | colbit(scan[i],i,j);
118 <                                        pat[i][j] = 0;
119 <                                }
113 >                                c = pat[i][j] | colbit(scan[i],i,j);
114 >                                                        /* repeat this row */
115 >                                pat[i][j] = (c & 1) << 23;
116                                  putchar(c>>16);
117                                  putchar(c>>8 & 255);
118                                  putchar(c & 255);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines