UICommon: Move screensaver code to UICommon

This commit is contained in:
spycrab
2018-01-01 21:03:50 +00:00
parent 26a9957285
commit 0dd52ca7ab
5 changed files with 87 additions and 67 deletions

View File

@ -744,7 +744,7 @@ void CFrame::StartGame(std::unique_ptr<BootParameters> boot)
}
else
{
InhibitScreensaver();
EnableScreenSaver(false);
// We need this specifically to support setting the focus properly when using
// the 'render to main window' feature on Windows
@ -931,7 +931,7 @@ void CFrame::OnStopped()
m_tried_graceful_shutdown = false;
wxPostEvent(GetMenuBar(), wxCommandEvent{DOLPHIN_EVT_UPDATE_LOAD_WII_MENU_ITEM});
UninhibitScreensaver();
EnableScreenSaver(true);
m_render_frame->SetTitle(StrToWxStr(Common::scm_rev_str));