summaryrefslogtreecommitdiffstats
path: root/scene
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2020-12-28 15:56:14 +0100
committerGitHub <noreply@github.com>2020-12-28 15:56:14 +0100
commit9addcb760301af8417eec5cf07df2f8d32f24eb0 (patch)
tree9bdc43b2c080bebed872ce7489b6065366618d9e /scene
parent1a86a4b291348cf5a339defe99fb5cf79d90d7cd (diff)
parentb628912af0bd78e892b5609efdfb231478713919 (diff)
downloadredot-engine-9addcb760301af8417eec5cf07df2f8d32f24eb0.tar.gz
Merge pull request #44751 from madmiraal/rename-rect-grow_margin
Rename Rect2 and Rect2i grow_margin() to grow_side()
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/style_box.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/style_box.cpp b/scene/resources/style_box.cpp
index 0271edaff0..3c0f485561 100644
--- a/scene/resources/style_box.cpp
+++ b/scene/resources/style_box.cpp
@@ -687,7 +687,7 @@ void StyleBoxFlat::draw(RID p_canvas_item, const Rect2 &p_rect) const {
if (aa_on) {
for (int i = 0; i < 4; i++) {
if (border_width[i] > 0) {
- border_style_rect = border_style_rect.grow_margin((Side)i, -aa_size_grow);
+ border_style_rect = border_style_rect.grow_side((Side)i, -aa_size_grow);
}
}
}