Parcourir la source

Merge pull request #20831 from Calinou/project-manager-window-size-hidpi

Scale the project manager window size with the editor scale
Rémi Verschelde il y a 7 ans
Parent
commit
8c38bab6d7
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      editor/project_manager.cpp

+ 3 - 1
editor/project_manager.cpp

@@ -1750,6 +1750,8 @@ ProjectManager::ProjectManager() {
 				editor_set_scale(custom_display_scale);
 			} break;
 		}
+
+		OS::get_singleton()->set_window_size(OS::get_singleton()->get_window_size() * MAX(1, EDSCALE));
 	}
 
 	FileDialog::set_default_show_hidden_files(EditorSettings::get_singleton()->get("filesystem/file_dialog/show_hidden_files"));
@@ -1817,7 +1819,7 @@ ProjectManager::ProjectManager() {
 	project_filter = memnew(ProjectListFilter);
 	search_box->add_child(project_filter);
 	project_filter->connect("filter_changed", this, "_load_recent_projects");
-	project_filter->set_custom_minimum_size(Size2(250, 10));
+	project_filter->set_custom_minimum_size(Size2(280, 10) * EDSCALE);
 	search_tree_vb->add_child(search_box);
 
 	PanelContainer *pc = memnew(PanelContainer);