mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
UICommon: Move screensaver code to UICommon
This commit is contained in:
parent
26a9957285
commit
0dd52ca7ab
5 changed files with 87 additions and 67 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue