Merge pull request #5603 from sepalani/png-warn

Silent GameList PNG warnings
This commit is contained in:
Leo Lam 2017-06-12 23:58:23 +02:00 committed by GitHub
commit 73be025847
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)