New function GetBitmapName, inlined GetBitmapColors.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5605 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -178,17 +178,3 @@ Pixel GetPixel (const Bitmap* B, unsigned X, unsigned Y)
|
||||
|
||||
|
||||
|
||||
unsigned GetBitmapColors (const Bitmap* B)
|
||||
/* Get the number of colors in an image. The function will return the number
|
||||
* of palette entries for indexed bitmaps and 2^24 for non indexed bitmaps.
|
||||
*/
|
||||
{
|
||||
if (B->Pal) {
|
||||
return B->Pal->Count;
|
||||
} else {
|
||||
return (1U << 24);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user