summaryrefslogtreecommitdiff
path: root/platform/ios
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/ios
parent76391a091ed69f02ebdcc94164bac9d917c21606 (diff)
parentc939f336d6e26bb0d84f23e5a2587bc296b35dbf (diff)
Merge pull request #64014 from RedMser/keep-screen-on-singledef
Diffstat (limited to 'platform/ios')
-rw-r--r--platform/ios/display_server_ios.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/display_server_ios.mm b/platform/ios/display_server_ios.mm
index 080ee5f3ab..6ce7e676a2 100644
--- a/platform/ios/display_server_ios.mm
+++ b/platform/ios/display_server_ios.mm
@@ -128,7 +128,7 @@ DisplayServerIOS::DisplayServerIOS(const String &p_rendering_driver, WindowMode
}
#endif
- bool keep_screen_on = bool(GLOBAL_DEF("display/window/energy_saving/keep_screen_on", true));
+ bool keep_screen_on = bool(GLOBAL_GET("display/window/energy_saving/keep_screen_on"));
screen_set_keep_on(keep_screen_on);
Input::get_singleton()->set_event_dispatch_function(_dispatch_input_events);