diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-09-02 12:24:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-02 12:24:13 +0200 |
commit | 457108924f499b22df2438f12621a1aadbd240f1 (patch) | |
tree | 41f7baa6cf20b14a2ab349fad937e8f9f82da08b /editor | |
parent | 737c90963f99c66d75d4372f02adaa6d82779644 (diff) | |
parent | 9c5ce5cf58b951e4d19e367d51cb8451a21d1c20 (diff) |
Merge pull request #21687 from Calinou/fix-osx-project-manager-size
Fix the project manager window size on hiDPI displays on macOS
Diffstat (limited to 'editor')
-rw-r--r-- | editor/project_manager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 3a6a73d3cc..4d25a1da5c 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -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")); |