mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-07 08:15:59 -10:00
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:
1 parent
40d3f5d38f
commit
52fdb393ae
1 file changed
+2
-2
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user