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.5 by greg, Fri Oct 20 13:53:58 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 111 | Line 111 | int  y;
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;
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