1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

Update the editor display scale based on the device's scaled density

This commit is contained in:
Fredia Huya-Kouadio
2022-04-04 02:22:51 -07:00
parent a5f9e1ce18
commit 3ba0508f79
8 changed files with 46 additions and 2 deletions

View File

@@ -1463,7 +1463,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 OS::get_singleton()->get_screen_max_scale();
#else
const int screen = OS::get_singleton()->get_current_screen();