Close #4865: Offer an option to disable inhibiting the monitor power (#13243)

Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
This commit is contained in:
authored and GitHub committed 2020-10-20 22:02:44 +02:00
1 parent 853f718aee
commit 9dcbf6d4e6
9 files changed
+28 -1

No files matched your search

+6
View File
@@ -11,6 +11,7 @@
#include "Theme.h"
#include <SDL.h>
#include <algorithm>
#include <openrct2/Context.h>
#include <openrct2/Input.h>
@@ -537,6 +538,11 @@ void window_all_wheel_input()
}
}
void ApplyScreenSaverLockSetting()
{
gConfigGeneral.disable_screensaver ? SDL_DisableScreenSaver() : SDL_EnableScreenSaver();
}
/**
* Initialises scroll widgets to their virtual size.
* rct2: 0x006EAEB8