Merge pull request #21687 from Calinou/fix-osx-project-manager-size

Fix the project manager window size on hiDPI displays on macOS
This commit is contained in:
Rémi Verschelde 2018-09-02 12:24:13 +02:00 committed by GitHub
commit 457108924f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

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"));