summaryrefslogtreecommitdiff
path: root/platform/windows
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-08-08 12:04:04 +0200
committerGitHub <noreply@github.com>2022-08-08 12:04:04 +0200
commit5df8eae86292303fefe2d412fb8c04126e7ebe87 (patch)
tree7882e72df128ae9bbe8ea4bf88f74863619ff1b2 /platform/windows
parent76391a091ed69f02ebdcc94164bac9d917c21606 (diff)
parentc939f336d6e26bb0d84f23e5a2587bc296b35dbf (diff)
Merge pull request #64014 from RedMser/keep-screen-on-singledef
Diffstat (limited to 'platform/windows')
-rw-r--r--platform/windows/display_server_windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/display_server_windows.cpp b/platform/windows/display_server_windows.cpp
index a975d09a9d..8c8dbef8a4 100644
--- a/platform/windows/display_server_windows.cpp
+++ b/platform/windows/display_server_windows.cpp
@@ -3653,7 +3653,7 @@ DisplayServerWindows::DisplayServerWindows(const String &p_rendering_driver, Win
tts = memnew(TTS_Windows);
// Enforce default keep screen on value.
- screen_set_keep_on(GLOBAL_DEF("display/window/energy_saving/keep_screen_on", true));
+ screen_set_keep_on(GLOBAL_GET("display/window/energy_saving/keep_screen_on"));
// Note: Wacom WinTab driver API for pen input, for devices incompatible with Windows Ink.
HMODULE wintab_lib = LoadLibraryW(L"wintab32.dll");