diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-05-24 19:53:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-24 19:53:19 +0200 |
commit | af03e9c83018b47cb82da67e5f8e277b29b82d66 (patch) | |
tree | 4880b70a38730cde1a0c6879ec94326924190ae7 /platform/android/export/export.cpp | |
parent | 215e43242c2a5b2ec5a8ccb4d26d716f965cbbd9 (diff) | |
parent | 660952a85773e959664376faf5c09e63aa613092 (diff) |
Merge pull request #48939 from Calinou/screen-orientation-use-enum
Use an enum to represent screen orientation in the Project Settings
Diffstat (limited to 'platform/android/export/export.cpp')
-rw-r--r-- | platform/android/export/export.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp index cd3f00f935..ec2618a3d5 100644 --- a/platform/android/export/export.cpp +++ b/platform/android/export/export.cpp @@ -847,7 +847,8 @@ class EditorExportPlatformAndroid : public EditorExportPlatform { int version_code = p_preset->get("version/code"); String package_name = p_preset->get("package/unique_name"); - const int screen_orientation = _get_android_orientation_value(_get_screen_orientation()); + const int screen_orientation = + _get_android_orientation_value(DisplayServer::ScreenOrientation(int(GLOBAL_GET("display/window/handheld/orientation")))); bool screen_support_small = p_preset->get("screen/support_small"); bool screen_support_normal = p_preset->get("screen/support_normal"); |