Silent GameList PNG warnings

This commit is contained in:
Sepalani 2017-06-12 22:08:04 +01:00
parent 9b8feb8e60
commit b7dde796fa
1 changed files with 3 additions and 0 deletions

View File

@ -143,6 +143,9 @@ bool DolphinApp::OnInit()
// Enable the PNG image handler for screenshots
wxImage::AddHandler(new wxPNGHandler);
// Silent PNG warnings from some homebrew banners: "iCCP: known incorrect sRGB profile"
wxImage::SetDefaultLoadFlags(wxImage::GetDefaultLoadFlags() & ~wxImage::Load_Verbose);
// We have to copy the size and position out of SConfig now because CFrame's OnMove
// handler will corrupt them during window creation (various APIs like SetMenuBar cause
// event dispatch including WM_MOVE/WM_SIZE)