diff options
| author | kobewi <kobewi4e@gmail.com> | 2022-10-18 16:43:37 +0200 |
|---|---|---|
| committer | kobewi <kobewi4e@gmail.com> | 2022-10-18 19:01:48 +0200 |
| commit | e48c5daddfa70172c0eab57b8045a7087eec6e2c (patch) | |
| tree | 249fa2203570136d3a2040ad612e6e86a516cd5f /scene/gui/control.cpp | |
| parent | 28a4eec9a77bc797b7147be2453cdbe85cf47d7f (diff) | |
| download | redot-engine-e48c5daddfa70172c0eab57b8045a7087eec6e2c.tar.gz | |
Unify usage of GLOBAL/EDITOR_GET
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 565e450d60..df9d2fb053 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -633,7 +633,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/viewport_width"), ProjectSettings::get_singleton()->get("display/window/size/viewport_height")); + parent_rect.size = Size2(GLOBAL_GET("display/window/size/viewport_width"), GLOBAL_GET("display/window/size/viewport_height")); } else { parent_rect = get_viewport()->get_visible_rect(); } |
