diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2021-03-31 12:50:24 +0100 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2022-01-04 13:59:16 +0000 |
commit | f107139979d55eaa2f3ddc41f2c7d7895801f2e5 (patch) | |
tree | 4bf40dc96048d8befe38340dbecdc576c65cf750 /scene/gui/control.cpp | |
parent | e432181dc3788d3e3454b02e143a823f26e17bcc (diff) |
Rename Project Window width and height settings to match their function
Diffstat (limited to 'scene/gui/control.cpp')
-rw-r--r-- | scene/gui/control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |