mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-30 04:20:23 +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
|
||||
if (img->colorMode() == ColorMode::INDEXED)
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user