From f107139979d55eaa2f3ddc41f2c7d7895801f2e5 Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Wed, 31 Mar 2021 12:50:24 +0100 Subject: Rename Project Window width and height settings to match their function --- scene/gui/control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/gui/control.cpp') diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index bc0e0e9eee..94006b0c1b 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -1296,7 +1296,7 @@ Rect2 Control::get_parent_anchorable_rect() const { #ifdef TOOLS_ENABLED Node *edited_root = get_tree()->get_edited_scene_root(); if (edited_root && (this == edited_root || edited_root->is_ancestor_of(this))) { - parent_rect.size = Size2(ProjectSettings::get_singleton()->get("display/window/size/width"), ProjectSettings::get_singleton()->get("display/window/size/height")); + parent_rect.size = Size2(ProjectSettings::get_singleton()->get("display/window/size/viewport_width"), ProjectSettings::get_singleton()->get("display/window/size/viewport_height")); } else { parent_rect = get_viewport()->get_visible_rect(); } -- cgit v1.2.3