summaryrefslogtreecommitdiff
path: root/libmemdraw
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2010-03-13 15:04:35 +0000
committerforsyth <forsyth@vitanuova.com>2010-03-13 15:04:35 +0000
commitd0e1d143ef6f03c75c008c7ec648859dd260cbab (patch)
tree198b82f03eb761101a5af0a797bbd554e74b78b1 /libmemdraw
parent5d1ea71a9f825862284589cbb5ef5d6e6a9bd48e (diff)
20100313-1504
Diffstat (limited to 'libmemdraw')
-rw-r--r--libmemdraw/draw.c17
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;