diff options
| author | Robert Hernandez | 2017-03-30 23:35:57 -0400 |
|---|---|---|
| committer | Robert Hernandez | 2017-03-31 01:48:02 -0400 |
| commit | 7a428206fec3018f2535768b8a1f20ab9f02aa22 (patch) | |
| tree | 90a14676bf94e52e004fbe59179827b260b327c5 /scene/gui/patch_9_rect.cpp | |
| parent | a4a12a2b7b2f1acfae0d0f1158a1b14e79958da5 (diff) | |
| download | godot-7a428206fec3018f2535768b8a1f20ab9f02aa22.tar.gz godot-7a428206fec3018f2535768b8a1f20ab9f02aa22.tar.zst godot-7a428206fec3018f2535768b8a1f20ab9f02aa22.zip | |
Fixed WindowDialog not aligning properly
Diffstat (limited to 'scene/gui/patch_9_rect.cpp')
| -rw-r--r-- | scene/gui/patch_9_rect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/patch_9_rect.cpp b/scene/gui/patch_9_rect.cpp index 77178b902..f53036085 100644 --- a/scene/gui/patch_9_rect.cpp +++ b/scene/gui/patch_9_rect.cpp @@ -39,9 +39,9 @@ void NinePatchRect::_notification(int p_what) { Rect2 rect = Rect2(Point2(), get_size()); Rect2 src_rect = region_rect; - + texture->get_rect_region(rect, src_rect, rect, src_rect); - + RID ci = get_canvas_item(); VS::get_singleton()->canvas_item_add_nine_patch(ci, 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); } |
