diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2020-10-18 13:06:11 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2020-10-18 16:31:48 -0500 |
| commit | 50ec74784052b87dcf3a09d682beae8f1c8c8037 (patch) | |
| tree | be3cd8c1029da5fbea0e99340aae2251432d5d0e /Source/Core/DolphinNoGUI/PlatformWin32.cpp | |
| parent | fa83a3a114484850f296f25aed3f48e16769b3c0 (diff) | |
Clean up screen saver inhibition and apply setting change immediately.
Diffstat (limited to 'Source/Core/DolphinNoGUI/PlatformWin32.cpp')
| -rw-r--r-- | Source/Core/DolphinNoGUI/PlatformWin32.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/DolphinNoGUI/PlatformWin32.cpp b/Source/Core/DolphinNoGUI/PlatformWin32.cpp index b9331f56ab..75d30b8b2c 100644 --- a/Source/Core/DolphinNoGUI/PlatformWin32.cpp +++ b/Source/Core/DolphinNoGUI/PlatformWin32.cpp @@ -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; } |
