Remove unused ColorMap to CLUT function

svn path=/trunk/netsurf/; revision=12136
This commit is contained in:
Chris Young 2011-03-26 10:36:25 +00:00
parent 14d6826685
commit 757ad3cb02
2 changed files with 0 additions and 24 deletions

View File

@ -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;
}

View File

@ -41,5 +41,4 @@ struct bitmap {
struct BitMap *ami_getcachenativebm(struct bitmap *bitmap,int width,int height,struct BitMap *friendbm);
Object *ami_datatype_object_from_bitmap(struct bitmap *bitmap);
APTR ami_colormap_to_clut(struct ColorMap *cmap);
#endif