mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-04 00:26:09 +00:00
Clean up screen saver inhibition and apply setting change immediately.
This commit is contained in:
parent
fa83a3a114
commit
50ec747840
5 changed files with 33 additions and 48 deletions
|
@ -107,6 +107,9 @@ bool PlatformWin32::Init()
|
|||
ProcessEvents();
|
||||
}
|
||||
|
||||
if (Config::Get(Config::MAIN_DISABLE_SCREENSAVER))
|
||||
SetThreadExecutionState(ES_CONTINUOUS | ES_DISPLAY_REQUIRED | ES_SYSTEM_REQUIRED);
|
||||
|
||||
UpdateWindowPosition();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue