From 757ad3cb0202a46fa25e180506f4b90dba8d9654 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 26 Mar 2011 10:36:25 +0000 Subject: Remove unused ColorMap to CLUT function svn path=/trunk/netsurf/; revision=12136 --- amiga/bitmap.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'amiga/bitmap.c') diff --git a/amiga/bitmap.c b/amiga/bitmap.c index ff07da910..8807f7a23 100644 --- a/amiga/bitmap.c +++ b/amiga/bitmap.c @@ -421,26 +421,3 @@ struct BitMap *ami_getcachenativebm(struct bitmap *bitmap,int width,int height,s return tbm; } - -APTR ami_colormap_to_clut(struct ColorMap *cmap) -{ - int i; - UBYTE *clut = AllocVec(256 * 4, MEMF_PRIVATE | MEMF_CLEAR); - ULONG colour[3 * 256]; - - if(!clut) return NULL; - - /* Get the palette from the ColorMap */ - GetRGB32(cmap, 0, 256, (ULONG *)&colour); - - /* convert it to a table of ARGB values */ - for(i = 0; i < 1024; i += 4) - { - clut[i] = (0xff << 24) | - ((colour[i] & 0xff000000) >> 8) | - ((colour[i + 1] & 0xff000000) >> 16) | - ((colour[i + 2] & 0xff000000) >> 24); - } - - return clut; -} -- cgit v1.2.3