mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Clean up screen saver inhibition and apply setting change immediately.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user