summaryrefslogtreecommitdiff
path: root/amiga/bitmap.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2011-03-26 10:36:25 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2011-03-26 10:36:25 +0000
commit757ad3cb0202a46fa25e180506f4b90dba8d9654 (patch)
tree15e4c632e59554e03edac01414637b7e97c90724 /amiga/bitmap.c
parent14d6826685a69d2983cb8df3faaf14b563a0ec6b (diff)
downloadnetsurf-757ad3cb0202a46fa25e180506f4b90dba8d9654.tar.gz
netsurf-757ad3cb0202a46fa25e180506f4b90dba8d9654.tar.bz2
Remove unused ColorMap to CLUT function
svn path=/trunk/netsurf/; revision=12136
Diffstat (limited to 'amiga/bitmap.c')
-rw-r--r--amiga/bitmap.c23
1 files changed, 0 insertions, 23 deletions
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;
-}