Allow suppressing warnings from wxImage::LoadFile()

Add wxImage::SetLoadFlags() and static SetDefaultLoadFlags() to allow
suppressing the warning messages that can be logged when loading some files,
notably PNG ones with invalid sRGB profiles which, unfortunately, seem to be
rather common and result in annoying warnings about them with libpng 1.6+.

Closes #15331.
This commit is contained in:
Vadim Zeitlin
2016-01-31 02:22:55 +01:00
parent 5066bff04e
commit a016e6b896
4 changed files with 117 additions and 1 deletions

View File

@@ -143,6 +143,7 @@ All (GUI):
- Use platform-specific stock icons for wxEditableListBox buttons.
- Add support for the events from multimedia keys (Jens Göpfert).
- Improve wxAUI appearance in high contrast themes (Zane U. Ji).
- Allow suppressing warnings from wxImage::LoadFile().
wxGTK: