X-Git-Url: http://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/4e74df93acc6594cd8a212c30dc2b429520caef2..af13a143c8bfcd713216b1382448174e21b9f278:/src/png.c diff --git a/src/png.c b/src/png.c index 83aeec4..c52db03 100644 --- a/src/png.c +++ b/src/png.c @@ -37,18 +37,6 @@ struct file_info { 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; @@ -220,7 +208,7 @@ int img_output_png(FILE *f, const char *filename, 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;