Add cross-platform "disable screen saver" setting (#497)

This commit is contained in:
lisa-wolfgang 2023-02-24 15:10:07 -06:00 committed by GitHub
parent 80b1c50b50
commit 4c697d3755
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 65 additions and 7 deletions

View file

@ -112,11 +112,6 @@ void LattePerformanceMonitor_frameEnd()
LatteOverlay_updateStats(fps, drawCallCounter / elapsedFrames);
gui_updateWindowTitles(false, false, fps);
}
// prevent hibernation and screen saver/monitor off
#if BOOST_OS_WINDOWS
SetThreadExecutionState(ES_CONTINUOUS | ES_DISPLAY_REQUIRED | ES_SYSTEM_REQUIRED);
#endif
}
LatteOverlay_updateStatsPerFrame();
}