diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-09-13 11:20:09 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-09-13 11:20:09 -0300 |
commit | bfe67a3b87ada532d27df015141af8eb6091ef89 (patch) | |
tree | 0624dd10f9a1ef401688a1ef8bca97cd5dca3f59 /tools/editor/project_manager.cpp | |
parent | 8bcb6a290c61d40333cf3aa73e362836b6e12659 (diff) |
Make Godot detect if the screen is too small (<1200 pixels wide), and use single dock column like in 1.0 if that's the case.
Diffstat (limited to 'tools/editor/project_manager.cpp')
-rw-r--r-- | tools/editor/project_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/project_manager.cpp b/tools/editor/project_manager.cpp index b9691ee7c4..b2eae2f6d1 100644 --- a/tools/editor/project_manager.cpp +++ b/tools/editor/project_manager.cpp @@ -1185,7 +1185,7 @@ ProjectManager::ProjectManager() { { int dpi_mode = EditorSettings::get_singleton()->get("global/hidpi_mode"); if (dpi_mode==0) { - editor_set_scale( OS::get_singleton()->get_screen_dpi(0) > 150 ? 2.0 : 1.0 ); + editor_set_scale( OS::get_singleton()->get_screen_dpi(0) > 150 && OS::get_singleton()->get_screen_size(OS::get_singleton()->get_current_screen()).x>2000 ? 2.0 : 1.0 ); } else if (dpi_mode==1) { editor_set_scale(0.75); } else if (dpi_mode==2) { |