UICommon: Move screensaver code to UICommon

This commit is contained in:
spycrab committed 2018-01-03 12:38:33 +01:00
1 parent 26a9957285
commit 0dd52ca7ab
5 files changed
+87 -67

No files matched your search

+2 -2
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));