diff --git a/scene/resources/style_box.cpp b/scene/resources/style_box.cpp index 27ae83908e5..a9ebb213454 100644 --- a/scene/resources/style_box.cpp +++ b/scene/resources/style_box.cpp @@ -562,8 +562,8 @@ inline void set_inner_corner_radius(const Rect2 style_rect, const Rect2 inner_re inner_corner_radius[3] = MAX(corner_radius[3] - rad, 0); } -inline void draw_ring(Vector &verts, Vector &indices, Vector &colors, const Rect2 &style_rect, const real_t corner_radius[4], - const Rect2 &ring_rect, const Rect2 &inner_rect, const Color &inner_color, const Color &outer_color, const int corner_detail, const Vector2 &skew, bool fill_center = false) { +inline void draw_rounded_rectangle(Vector &verts, Vector &indices, Vector &colors, const Rect2 &style_rect, const real_t corner_radius[4], + const Rect2 &ring_rect, const Rect2 &inner_rect, const Color &inner_color, const Color &outer_color, const int corner_detail, const Vector2 &skew, bool is_filled = false) { int vert_offset = verts.size(); if (!vert_offset) { vert_offset = 0; @@ -571,6 +571,8 @@ inline void draw_ring(Vector &verts, Vector &indices, Vector &verts, Vector &indices, Vector &verts, Vector &indices, Vector