[libpng16] Imported from libpng-1.6.0beta19.tar

This commit is contained in:
Glenn Randers-Pehrson
2012-03-18 22:39:52 -05:00
parent eda53e5770
commit ce9d8a3f48
14 changed files with 31 additions and 29 deletions

View File

@@ -1335,10 +1335,12 @@ png_set_benign_errors(png_structrp png_ptr, int allowed)
*/
if (allowed)
png_ptr->flags |= PNG_FLAG_BENIGN_ERRORS_WARN;
png_ptr->flags |= PNG_FLAG_BENIGN_ERRORS_WARN |
PNG_FLAG_APP_WARNINGS_WARN | PNG_FLAG_APP_ERRORS_WARN;
else
png_ptr->flags &= ~PNG_FLAG_BENIGN_ERRORS_WARN;
png_ptr->flags &= ~(PNG_FLAG_BENIGN_ERRORS_WARN |
PNG_FLAG_APP_WARNINGS_WARN | PNG_FLAG_APP_ERRORS_WARN);
}
#endif /* PNG_BENIGN_ERRORS_SUPPORTED */