# | Line 63 | Line 63 | register FILE *fp; | |
---|---|---|
63 | if (cnt >= MINRUN) | |
64 | break; /* long enough */ | |
65 | } | |
66 | < | while (j < beg) { /* write out non-run(s) */ |
66 | > | if (beg-j > 1 && beg-j < MINRUN) { |
67 | > | c2 = j+1; |
68 | > | while (scanline[c2++][i] == scanline[j][i]) |
69 | > | if (c2 == beg) { /* short run */ |
70 | > | putc(128+beg-j, fp); |
71 | > | putc(scanline[j][i], fp); |
72 | > | j = beg; |
73 | > | break; |
74 | > | } |
75 | > | } |
76 | > | while (j < beg) { /* write out non-run */ |
77 | if ((c2 = beg-j) > 128) c2 = 128; | |
78 | putc(c2, fp); | |
79 | while (c2--) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |