From 72494a03634d16c7c91d4a5de214bfe09befbf40 Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Fri, 30 Jul 2010 11:58:18 +0000 Subject: [PATCH] Use the portable SLEEP() macro in place of Sleep(). r5998 fixes the Center() problem in plugins on OS X. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6001 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/State.cpp | 4 ++-- Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Source/Core/Core/Src/State.cpp b/Source/Core/Core/Src/State.cpp index 56fdc2f62d..9f7a739c84 100644 --- a/Source/Core/Core/Src/State.cpp +++ b/Source/Core/Core/Src/State.cpp @@ -236,7 +236,7 @@ void SaveStateCallback(u64 userdata, int cyclesLate) PowerPC::Pause(); // Wait for the other threaded sub-systems to stop too - Sleep(100); + SLEEP(100); State_Flush(); @@ -272,7 +272,7 @@ void LoadStateCallback(u64 userdata, int cyclesLate) PowerPC::Pause(); // Wait for the other threaded sub-systems to stop too - Sleep(100); + SLEEP(100); State_Flush(); diff --git a/Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp b/Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp index c2e5c0e0b0..7188488dca 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp @@ -529,9 +529,7 @@ void GFXConfigDialogOGL::CreateGUIControls() InitializeGUITooltips(); Fit(); -#ifndef __APPLE__ - Center(); //it seems to cause problems on macs with small screens -#endif + Center(); UpdateGUI(); }