Fix the project manager window size on hiDPI displays on macOS

This closes #21525.
This commit is contained in:
Hugo Locurcio 2018-09-02 11:50:40 +02:00
parent 737c90963f
commit 9c5ce5cf58
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C

View file

@ -1751,7 +1751,11 @@ ProjectManager::ProjectManager() {
} break;
}
#ifndef OSX_ENABLED
// The macOS platform implementation uses its own hiDPI window resizing code
// TODO: Resize windows on hiDPI displays on Windows and Linux and remove the line below
OS::get_singleton()->set_window_size(OS::get_singleton()->get_window_size() * MAX(1, EDSCALE));
#endif
}
FileDialog::set_default_show_hidden_files(EditorSettings::get_singleton()->get("filesystem/file_dialog/show_hidden_files"));