History

libdraw: remove unused static log2[] array

cinap_lenrek committed 10 years ago

Commit 7b844271 parent a08fb223 files · +1 −14Browse files

Unified · Split

3 files
  1. include/draw.h +1 −3
  2. libdraw/arith.c +0 −6
  3. libmemlayer/line.c +0 −5
include/draw.h+1−3
@@ -509,7 +509,5 @@ extern void _setdrawop(Display*, Drawop); · 508 unmodified lines
509extern void _twiddlecompressed(uchar*, int);509extern void _twiddlecompressed(uchar*, int);
510extern int _compblocksize(Rectangle, int);510extern int _compblocksize(Rectangle, int);
511 511
512/* XXX backwards helps; should go */
513// extern int log2[]; /* was used by libmemlayer/line.c */
514extern ulong drawld2chan[];512extern ulong drawld2chan[];
515extern void drawsetdebug(int);513extern void drawsetdebug(int);
libdraw/arith.c+0−6
@@ -166,12 +166,6 @@ ulong drawld2chan[] = { · 165 unmodified lines
166 CMAP8,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 */
173static 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
175ulong169ulong
176setalpha(ulong color, uchar alpha)170setalpha(ulong color, uchar alpha)
177{171{
libmemlayer/line.c+0−5
@@ -65,11 +65,6 @@ _memline(Memimage *dst, Point p0, Point p1, int end0, int end1, int radius, Memi · 64 unmodified lines
65 goto Top;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 /* can't use sutherland-cohen clipping because lines are wide */68 /* can't use sutherland-cohen clipping because lines are wide */
74 r = memlinebbox(p0, p1, end0, end1, radius);69 r = memlinebbox(p0, p1, end0, end1, radius);
75 /*70 /*

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t