summaryrefslogtreecommitdiffstats
path: root/scene
diff options
context:
space:
mode:
authorunknown <numaanzaheerahmed@yahoo.com>2020-05-17 03:06:42 +0530
committerunknown <numaanzaheerahmed@yahoo.com>2020-05-17 03:06:42 +0530
commit634e9460b9acc3bb9dfe5e8a74cb3297a4c8e8d2 (patch)
tree96dd98573b8ee9f9faa5f38e65b1ebf518c0daac /scene
parent163687d17a8a11da3cf1a3595c511a5f8fc94571 (diff)
downloadredot-engine-634e9460b9acc3bb9dfe5e8a74cb3297a4c8e8d2.tar.gz
Fix popup window size calculation in popup_centered_ratio by using Rect2
Diffstat (limited to 'scene')
-rw-r--r--scene/main/window.cpp2
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();