mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-29 09:23:32 +00:00
Remove unused function image_depth().
This commit is contained in:
parent
1345919aaa
commit
9fc0309230
@ -86,17 +86,6 @@ void image_free(Image* image)
|
||||
delete image;
|
||||
}
|
||||
|
||||
int image_depth(Image* image)
|
||||
{
|
||||
switch (image->imgtype) {
|
||||
case IMAGE_RGB: return 32;
|
||||
case IMAGE_GRAYSCALE: return 16;
|
||||
case IMAGE_INDEXED: return 8;
|
||||
case IMAGE_BITMAP: return 1;
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
|
||||
int image_getpixel(const Image* image, int x, int y)
|
||||
{
|
||||
if ((x >= 0) && (y >= 0) && (x < image->w) && (y < image->h))
|
||||
|
@ -73,8 +73,6 @@ public:
|
||||
|
||||
void image_free(Image* image);
|
||||
|
||||
int image_depth(Image* image);
|
||||
|
||||
int image_getpixel(const Image* image, int x, int y);
|
||||
void image_putpixel(Image* image, int x, int y, int color);
|
||||
void image_putpen(Image* image, Pen* pen, int x, int y, int fg_color, int bg_color);
|
||||
|
Loading…
Reference in New Issue
Block a user