diff options
Diffstat (limited to 'amiga')
-rw-r--r-- | amiga/bitmap.c | 23 | ||||
-rwxr-xr-x | amiga/bitmap.h | 1 |
2 files changed, 0 insertions, 24 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; -} diff --git a/amiga/bitmap.h b/amiga/bitmap.h index e4c31637c..d2246d242 100755 --- a/amiga/bitmap.h +++ b/amiga/bitmap.h @@ -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 |