diff options
Diffstat (limited to 'libmemdraw')
| -rw-r--r-- | libmemdraw/draw.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/libmemdraw/draw.c b/libmemdraw/draw.c index 8e8b2c5b..f8330713 100644 --- a/libmemdraw/draw.c +++ b/libmemdraw/draw.c @@ -305,9 +305,6 @@ drawclip(Memimage *dst, Rectangle *r, Memimage *src, Point *p0, Memimage *mask, * Conversion tables. */ static uchar replbit[1+8][256]; /* replbit[x][y] is the replication of the x-bit quantity y to 8-bit depth */ -static uchar conv18[256][8]; /* conv18[x][y] is the yth pixel in the depth-1 pixel x */ -static uchar conv28[256][4]; /* ... */ -static uchar conv48[256][2]; /* * bitmap of how to replicate n bits to fill 8, for 1 ≤ n ≤ 8. @@ -341,7 +338,7 @@ static int replmul[1+8] = { static void mktables(void) { - int i, j, mask, sh, small; + int i, j, small; if(tablesbuilt) return; @@ -357,18 +354,6 @@ mktables(void) replbit[j][i] = (small*replmul[j])>>8; } } - - /* bit unpacking up to 8 bits, only powers of 2 */ - for(i=0; i<256; i++){ - for(j=0, sh=7, mask=1; j<8; j++, sh--) - conv18[i][j] = replbit[1][(i>>sh)&mask]; - - for(j=0, sh=6, mask=3; j<4; j++, sh-=2) - conv28[i][j] = replbit[2][(i>>sh)&mask]; - - for(j=0, sh=4, mask=15; j<2; j++, sh-=4) - conv48[i][j] = replbit[4][(i>>sh)&mask]; - } } static uchar ones = 0xff; |
