# | Line 145 | Line 145 | int y; | |
---|---|---|
145 | fputs("\033\031", stdout); | |
146 | ||
147 | for (j = 0; j < 3; j++) { | |
148 | + | i = (NCOLS + len)/2; /* center image */ |
149 | fputs("\033%O", stdout); | |
150 | < | putchar(len & 255); |
151 | < | putchar(len >> 8); |
150 | > | putchar(i & 255); |
151 | > | putchar(i >> 8); |
152 | > | while (i-- > len) { |
153 | > | putchar(0); |
154 | > | putchar(0); |
155 | > | putchar(0); |
156 | > | } |
157 | for (i = 0; i < len; i++) { | |
158 | c = lpat[i][j] | colbit(scan[i],i,j); | |
159 | /* repeat this row */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |