Unified · Split
| @@ -509,7 +509,5 @@ extern void _setdrawop(Display*, Drawop); · 508 unmodified lines | ||
| 509 | 509 | extern void _twiddlecompressed(uchar*, int); |
| 510 | 510 | extern int _compblocksize(Rectangle, int); |
| 511 | 511 | |
| 512 | −/* XXX backwards helps; should go */ | |
| 513 | −// extern int log2[]; /* was used by libmemlayer/line.c */ | |
| 514 | 512 | extern ulong drawld2chan[]; |
| 515 | −extern void drawsetdebug(int); | |
| 513 | +extern void drawsetdebug(int); | |
| @@ -166,12 +166,6 @@ ulong drawld2chan[] = { · 165 unmodified lines | ||
| 166 | 166 | CMAP8, |
| 167 | 167 | }; |
| 168 | 168 | |
| 169 | −/* | |
| 170 | − * was used by libmemlayer/line.c; made static, instead of deleting it, | |
| 171 | − * to avoid updating many binaries on sources. | |
| 172 | − */ | |
| 173 | −static int log2[] = { -1, 0, 1, -1, 2, -1, -1, -1, 3, -1, -1, -1, -1, -1, -1, -1, 4, -1, -1, -1, -1, -1, -1, -1, 4 /* BUG */, -1, -1, -1, -1, -1, -1, -1, 5 }; | |
| 174 | − | |
| 175 | 169 | ulong |
| 176 | 170 | setalpha(ulong color, uchar alpha) |
| 177 | 171 | { |
| @@ -65,11 +65,6 @@ _memline(Memimage *dst, Point p0, Point p1, int end0, int end1, int radius, Memi · 64 unmodified lines | ||
| 65 | 65 | goto Top; |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | − /* XXX */ | |
| 69 | − /* this is not the correct set of tests */ | |
| 70 | −// if(log2[dst->depth] != log2[src->depth] || log2[dst->depth]!=3) | |
| 71 | −// return; | |
| 72 | − | |
| 73 | 68 | /* can't use sutherland-cohen clipping because lines are wide */ |
| 74 | 69 | r = memlinebbox(p0, p1, end0, end1, radius); |
| 75 | 70 | /* |