mirror of
https://github.com/godotengine/godot.git
synced 2025-10-27 19:54:27 +00:00
Only assume HiDPI mode if DPI >= 192 and width > 2000
Also fix detection of single-column dock if width < 1200, it only worked with hidpi_mode=auto.
This commit is contained in:
parent
efaeebab4d
commit
c103f32ea3
2 changed files with 4 additions and 6 deletions
|
|
@ -1178,7 +1178,7 @@ ProjectManager::ProjectManager() {
|
|||
{
|
||||
int dpi_mode = EditorSettings::get_singleton()->get("interface/hidpi_mode");
|
||||
if (dpi_mode == 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);
|
||||
editor_set_scale(OS::get_singleton()->get_screen_dpi(0) >= 192 && 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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue