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
This commit is contained in:
Soren Jorvang 2010-07-30 11:58:18 +00:00
parent bae8c6ed9c
commit 72494a0363
2 changed files with 3 additions and 5 deletions

View File

@ -236,7 +236,7 @@ void SaveStateCallback(u64 userdata, int cyclesLate)
PowerPC::Pause(); PowerPC::Pause();
// Wait for the other threaded sub-systems to stop too // Wait for the other threaded sub-systems to stop too
Sleep(100); SLEEP(100);
State_Flush(); State_Flush();
@ -272,7 +272,7 @@ void LoadStateCallback(u64 userdata, int cyclesLate)
PowerPC::Pause(); PowerPC::Pause();
// Wait for the other threaded sub-systems to stop too // Wait for the other threaded sub-systems to stop too
Sleep(100); SLEEP(100);
State_Flush(); State_Flush();

View File

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