mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +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:
parent
fd17d301d0
commit
a531051a61
2 changed files with 19 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue