aboutsummaryrefslogtreecommitdiff
path: root/scene/resources/style_box.cpp
diff options
context:
space:
mode:
authorRobert Hernandez2017-03-30 23:35:57 -0400
committerRobert Hernandez2017-03-31 01:48:02 -0400
commit7a428206fec3018f2535768b8a1f20ab9f02aa22 (patch)
tree90a14676bf94e52e004fbe59179827b260b327c5 /scene/resources/style_box.cpp
parenta4a12a2b7b2f1acfae0d0f1158a1b14e79958da5 (diff)
downloadgodot-7a428206fec3018f2535768b8a1f20ab9f02aa22.tar.gz
godot-7a428206fec3018f2535768b8a1f20ab9f02aa22.tar.zst
godot-7a428206fec3018f2535768b8a1f20ab9f02aa22.zip
Fixed WindowDialog not aligning properly
Diffstat (limited to '')
-rw-r--r--scene/resources/style_box.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/style_box.cpp b/scene/resources/style_box.cpp
index 173458f41..a3bb52d0f 100644
--- a/scene/resources/style_box.cpp
+++ b/scene/resources/style_box.cpp
@@ -134,9 +134,9 @@ void StyleBoxTexture::draw(RID p_canvas_item, const Rect2 &p_rect) const {
Rect2 rect = p_rect;
Rect2 src_rect = region_rect;
-
+
texture->get_rect_region(rect, src_rect, rect, src_rect);
-
+
VisualServer::get_singleton()->canvas_item_add_nine_patch(p_canvas_item, rect, src_rect, texture->get_rid(), Vector2(margin[MARGIN_LEFT], margin[MARGIN_TOP]), Vector2(margin[MARGIN_RIGHT], margin[MARGIN_BOTTOM]), VS::NINE_PATCH_STRETCH, VS::NINE_PATCH_STRETCH, draw_center, modulate);
}