From e1cc37d8259f4eaf7be750af1141101a112a1d44 Mon Sep 17 00:00:00 2001 From: dapetcu21 Date: Sun, 18 Jul 2010 20:06:24 +0000 Subject: [PATCH] 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 --- Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp b/Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp index 55c5149cbf..c38bdaefa1 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp @@ -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(); }