Give PNG warnings their own category, so they're hidden by default.

This probably isn't the kind of information that should appear in the average debug log, since it's unlikely to be of use in standard troubleshooting.
This commit is contained in:
MageKing17 committed 2019-10-17 13:44:02 -07:00
1 parent 40d3f5d38f
commit 52fdb393ae
1 file changed
+2 -2
+2 -2
View File
@@ -79,9 +79,9 @@ static void png_warning_fn(png_structp png_ptr, png_const_charp message)
png_status* status = reinterpret_cast<png_status*>(png_get_error_ptr(png_ptr));
if (status->writing) {
mprintf(("PNG warning while writing %s: %s\n", status->filename, message));
nprintf(("PNG warning", "PNG warning while writing %s: %s\n", status->filename, message));
} else {
mprintf(("PNG warning while reading %s of %s: %s\n", status->reading_header ? "header" : "pixel data", status->filename, message));
nprintf(("PNG warning", "PNG warning while reading %s of %s: %s\n", status->reading_header ? "header" : "pixel data", status->filename, message));
}
}