mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-18 11:42:47 +00:00
Fix is_empty_image() function using the maskColor in Indexed mode
This commit is contained in:
parent
313498b8c8
commit
259733e87d
@ -362,7 +362,7 @@ bool is_empty_image(const Image* img)
|
|||||||
color_t c = 0; // alpha = 0
|
color_t c = 0; // alpha = 0
|
||||||
if (img->colorMode() == ColorMode::INDEXED)
|
if (img->colorMode() == ColorMode::INDEXED)
|
||||||
c = img->maskColor();
|
c = img->maskColor();
|
||||||
return is_plain_image(img, 0);
|
return is_plain_image(img, c);
|
||||||
}
|
}
|
||||||
|
|
||||||
int count_diff_between_images(const Image* i1, const Image* i2)
|
int count_diff_between_images(const Image* i1, const Image* i2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user