From 660952a85773e959664376faf5c09e63aa613092 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 21 May 2021 21:29:24 +0200 Subject: Use an enum to represent screen orientation in the Project Settings - Tweak the setting property hint to be more informative. - Make the setting a "basic" setting so it appears when Advanced Settings is disabled. - Remove redundant orientation setting in the iOS export preset. The project setting is now used (like on Android). Projects upgrading from a previous version will have to set the screen orientation again in the Project Settings if it wasn't set to the default value ("landscape"). --- servers/display_server.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'servers/display_server.h') diff --git a/servers/display_server.h b/servers/display_server.h index f05aa1f59a..c108281aff 100644 --- a/servers/display_server.h +++ b/servers/display_server.h @@ -175,6 +175,9 @@ public: return scale; } virtual bool screen_is_touchscreen(int p_screen = SCREEN_OF_MAIN_WINDOW) const; + + // Keep the ScreenOrientation enum values in sync with the `display/window/handheld/orientation` + // project setting hint. enum ScreenOrientation { SCREEN_LANDSCAPE, SCREEN_PORTRAIT, -- cgit v1.2.3