diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-24 01:14:51 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-24 01:14:51 +0100 |
commit | cd4e4c0fccfdbfe04d91617a1bc6c4785dd6a1ec (patch) | |
tree | d675bc1f5eaaf3a69a6eb9c2bb7ec254e90f3b10 /editor/plugins/version_control_editor_plugin.cpp | |
parent | 33cca7c65c5c3b02ffdbecfd916e27fa6bc41eb5 (diff) | |
parent | 79ba22a73f238ebd110fc5f3744c3c12a9a59475 (diff) | |
download | redot-engine-cd4e4c0fccfdbfe04d91617a1bc6c4785dd6a1ec.tar.gz |
Merge pull request #89111 from AThousandShips/vec_use
Use `Vector*` component-wise `min/max/clamp` functions where applicable
Diffstat (limited to 'editor/plugins/version_control_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/version_control_editor_plugin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/plugins/version_control_editor_plugin.cpp b/editor/plugins/version_control_editor_plugin.cpp index 9460f9fef2..1a602568fe 100644 --- a/editor/plugins/version_control_editor_plugin.cpp +++ b/editor/plugins/version_control_editor_plugin.cpp @@ -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(); |