mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Use Vector*
component-wise min/max/clamp
functions where applicable
This commit is contained in:
parent
fe01776f05
commit
79ba22a73f
53 changed files with 95 additions and 176 deletions
|
@ -93,8 +93,7 @@ void VersionControlEditorPlugin::popup_vcs_set_up_dialog(const Control *p_gui_ba
|
|||
if (!available_plugins.is_empty()) {
|
||||
Size2 popup_size = Size2(400, 100);
|
||||
Size2 window_size = p_gui_base->get_viewport_rect().size;
|
||||
popup_size.x = MIN(window_size.x * 0.5, popup_size.x);
|
||||
popup_size.y = MIN(window_size.y * 0.5, popup_size.y);
|
||||
popup_size = popup_size.min(window_size * 0.5);
|
||||
|
||||
_populate_available_vcs_names();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue