summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorFredia Huya-Kouadio <fhuyakou@gmail.com>2022-04-04 02:22:51 -0700
committerFredia Huya-Kouadio <fhuyakou@gmail.com>2022-04-04 09:23:43 -0700
commit8eabf77f5403e7d7aff770f73a9b7906b424149a (patch)
treeed83fef086d1e03b9a4c999d8cc95258665deb52 /editor
parent10d9e479491c25a350a8ed191987dd36ed43c073 (diff)
Update the editor display scale based on the device's scaled density
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_settings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp
index 1364f7891e..11a9735f35 100644
--- a/editor/editor_settings.cpp
+++ b/editor/editor_settings.cpp
@@ -1365,7 +1365,7 @@ String EditorSettings::get_editor_layouts_config() const {
}
float EditorSettings::get_auto_display_scale() const {
-#ifdef OSX_ENABLED
+#if defined(OSX_ENABLED) || defined(ANDROID_ENABLED)
return DisplayServer::get_singleton()->screen_get_max_scale();
#else
const int screen = DisplayServer::get_singleton()->window_get_current_screen();