FILE *f;
};
-static int is_masked(unsigned char **mask, unsigned width, unsigned height)
-{
- for (unsigned y = 0; y < height; y++) {
- for (unsigned x = 0; x < width; x++) {
- if (mask[y][x] == 0)
- return 1;
- }
- }
-
- return 0;
-}
-
static void fatal(png_structp png, int err, const char *fmt, ...)
{
va_list ap;
unsigned char **framedata, unsigned char **mask,
struct lbx_colour *palette)
{
- bool masked = is_masked(mask, width, height);
+ bool masked = img_is_masked(mask, width, height);
struct file_info file = { filename, f };
png_structp png;
png_infop info;