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.2 by greg, Tue Sep 12 13:04:20 1989 UTC vs.
Revision 1.3 by greg, Fri Oct 20 10:28:59 1989 UTC

# Line 66 | Line 66 | char  *fname;
66                  fprintf(stderr, "%s: resolution mismatch\n", fname);
67                  return(-1);
68          }
69 <
70 <        fputs("\033A\014\0332", stdout);
71 <        
69 >                                /* set line spacing (overlap for knitting) */
70 >        fputs("\0333\042", stdout);
71 >                                /* put out scanlines */
72          for (i = yres-1; i >= 0; i--) {
73                  if (freadscan(scanline, xres, input) < 0) {
74                          fprintf(stderr, "%s: read error (y=%d)\n", fname, i);
# Line 76 | Line 76 | char  *fname;
76                  }
77                  plotscan(scanline, xres, i);
78          }
79 <
79 >                                /* advance page */
80          putchar('\f');
81          
82          fclose(input);
# Line 95 | Line 95 | int  y;
95          register long  c;
96          register int  i, j;
97  
98 <        if (bpos = y % 24) {
98 >        if (bpos = y % 23) {
99  
100                  for (j = 0; j < 3; j++)
101                          for (i = 0; i < len; i++)
# Line 110 | Line 110 | int  y;
110                          putchar(len & 255);
111                          putchar(len >> 8);
112                          for (i = 0; i < len; i++) {
113 <                                c = pat[i][j] | colbit(scan[i],i,j);
114 <                                pat[i][j] = 0;
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 >                                }
120                                  putchar(c>>16);
121                                  putchar(c>>8 & 255);
122                                  putchar(c & 255);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines