diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-05-21 21:29:24 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-05-24 18:53:10 +0200 |
commit | 660952a85773e959664376faf5c09e63aa613092 (patch) | |
tree | 0140da00d0fe0c373767841cb4fefb6e934a1054 /servers/display_server.h | |
parent | 2362a59a110e339e402c32dc844fd85e84f2a18d (diff) |
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").
Diffstat (limited to 'servers/display_server.h')
-rw-r--r-- | servers/display_server.h | 3 |
1 files changed, 3 insertions, 0 deletions
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, |