1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-06 17:25:19 +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 10d9e47949
commit 8eabf77f54
8 changed files with 44 additions and 2 deletions

View File

@@ -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();