1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Only assume HiDPI mode if DPI >= 192 and width > 2000

Also use single-dock column if width < 1200.

Manually adapted from bfe67a3b87
and c103f32ea3.

Fixes #6096.
This commit is contained in:
Rémi Verschelde
2017-03-24 18:23:48 +01:00
parent fd17d301d0
commit a531051a61
2 changed files with 19 additions and 4 deletions

View File

@@ -1180,7 +1180,7 @@ ProjectManager::ProjectManager() {
{
int dpi_mode = EditorSettings::get_singleton()->get("global/hidpi_mode");
if (dpi_mode == 0) {
editor_set_hidpi(OS::get_singleton()->get_screen_dpi(0) > 150);
editor_set_hidpi(OS::get_singleton()->get_screen_dpi(0) >= 192 && OS::get_singleton()->get_screen_size(OS::get_singleton()->get_current_screen()).x > 2000);
} else if (dpi_mode == 2) {
editor_set_hidpi(true);
} else {