diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-05-17 11:20:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-17 11:20:35 +0200 |
commit | 72608e571aea11f2565e9b38d2bcdc779ca16afe (patch) | |
tree | 96dd98573b8ee9f9faa5f38e65b1ebf518c0daac /scene/main | |
parent | 163687d17a8a11da3cf1a3595c511a5f8fc94571 (diff) | |
parent | 634e9460b9acc3bb9dfe5e8a74cb3297a4c8e8d2 (diff) |
Merge pull request #38793 from Anutrix/window-popup-centered-rect2-fix
Fix popup window size calculation in popup_centered_ratio by using Rect2
Diffstat (limited to 'scene/main')
-rw-r--r-- | scene/main/window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp index b2fc17c0ab..a9be8a1eff 100644 --- a/scene/main/window.cpp +++ b/scene/main/window.cpp @@ -992,7 +992,7 @@ void Window::popup_centered_ratio(float p_ratio) { ERR_FAIL_COND(!is_inside_tree()); ERR_FAIL_COND_MSG(window_id == DisplayServer::MAIN_WINDOW_ID, "Can't popup the main window."); - Rect2i parent_rect; + Rect2 parent_rect; if (is_embedded()) { parent_rect = get_parent_viewport()->get_visible_rect(); |