libdraw: remove unused static log2[] array
This commit is contained in:
parent
e02b986a80
commit
75186be2c2
3 changed files with 1 additions and 14 deletions
|
@ -521,7 +521,5 @@ extern void _setdrawop(Display*, Drawop);
|
||||||
extern void _twiddlecompressed(uchar*, int);
|
extern void _twiddlecompressed(uchar*, int);
|
||||||
extern int _compblocksize(Rectangle, int);
|
extern int _compblocksize(Rectangle, int);
|
||||||
|
|
||||||
/* XXX backwards helps; should go */
|
|
||||||
// extern int log2[]; /* was used by libmemlayer/line.c */
|
|
||||||
extern ulong drawld2chan[];
|
extern ulong drawld2chan[];
|
||||||
extern void drawsetdebug(int);
|
extern void drawsetdebug(int);
|
||||||
|
|
|
@ -166,12 +166,6 @@ ulong drawld2chan[] = {
|
||||||
CMAP8,
|
CMAP8,
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
* was used by libmemlayer/line.c; made static, instead of deleting it,
|
|
||||||
* to avoid updating many binaries on sources.
|
|
||||||
*/
|
|
||||||
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 };
|
|
||||||
|
|
||||||
ulong
|
ulong
|
||||||
setalpha(ulong color, uchar alpha)
|
setalpha(ulong color, uchar alpha)
|
||||||
{
|
{
|
||||||
|
|
|
@ -65,11 +65,6 @@ _memline(Memimage *dst, Point p0, Point p1, int end0, int end1, int radius, Memi
|
||||||
goto Top;
|
goto Top;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* XXX */
|
|
||||||
/* this is not the correct set of tests */
|
|
||||||
// if(log2[dst->depth] != log2[src->depth] || log2[dst->depth]!=3)
|
|
||||||
// return;
|
|
||||||
|
|
||||||
/* can't use sutherland-cohen clipping because lines are wide */
|
/* can't use sutherland-cohen clipping because lines are wide */
|
||||||
r = memlinebbox(p0, p1, end0, end1, radius);
|
r = memlinebbox(p0, p1, end0, end1, radius);
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue