You've already forked godot
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 frombfe67a3b87andc103f32ea3. Fixes #6096.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user