Workaround a bug on Mac OS in witch dolphin would crash whenthe OpenGL config window would be opened. It seems that wxDialog::Center() is completely useless on Mac OS X, and not only useless, but it crashes when the window is bigger than the screen.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5911 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
dapetcu21 2010-07-18 20:06:24 +00:00
parent 66d2bc477a
commit e1cc37d825

View File

@ -527,7 +527,9 @@ void GFXConfigDialogOGL::CreateGUIControls()
InitializeGUITooltips();
Fit();
Center();
#ifndef __APPLE__
Center(); //it seems to cause problems on macs with small screens
#endif
UpdateGUI();
}