summaryrefslogtreecommitdiff
path: root/platform/iphone/app_delegate.mm
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2018-07-16 23:09:22 +0900
committervolzhs <volzhs@gmail.com>2018-07-17 18:45:57 +0900
commitd18235bc38d4091a27e70f28b19dd48766c9d444 (patch)
tree3b369ee3f2d6f1534aa2a80c0b71957d4b6140f9 /platform/iphone/app_delegate.mm
parentc0c243ac5c0a8b03a64fdb18b0e647ae6427279c (diff)
Fix keep screen on property path for Android/iOS/UWP
Diffstat (limited to 'platform/iphone/app_delegate.mm')
-rw-r--r--platform/iphone/app_delegate.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/iphone/app_delegate.mm b/platform/iphone/app_delegate.mm
index dd5ce4ab10..cc4985eb0c 100644
--- a/platform/iphone/app_delegate.mm
+++ b/platform/iphone/app_delegate.mm
@@ -643,7 +643,7 @@ static int frame_count = 0;
view_controller.view = glView;
window.rootViewController = view_controller;
- _set_keep_screen_on(bool(GLOBAL_DEF("display/window/keep_screen_on", true)) ? YES : NO);
+ _set_keep_screen_on(bool(GLOBAL_DEF("display/window/energy_saving/keep_screen_on", true)) ? YES : NO);
glView.useCADisplayLink =
bool(GLOBAL_DEF("display.iOS/use_cadisplaylink", true)) ? YES : NO;
printf("cadisaplylink: %d", glView.useCADisplayLink);