From d3d4a3e96e4795eea4d6bdfa908a1081b1fdb6b0 Mon Sep 17 00:00:00 2001 From: SchelZ <67759165+SchelZ@users.noreply.github.com> Date: Mon, 17 Jun 2024 19:56:16 +0300 Subject: [PATCH] Update nuklear_panel.c --- src/nuklear_panel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nuklear_panel.c b/src/nuklear_panel.c index 792d774..75b8eb4 100644 --- a/src/nuklear_panel.c +++ b/src/nuklear_panel.c @@ -309,7 +309,7 @@ nk_panel_begin(struct nk_context *ctx, const char *title, enum nk_panel_type pan nk_draw_nine_slice(out, body, &style->window.fixed_background.data.slice, nk_white); break; case NK_STYLE_ITEM_COLOR: - nk_fill_rect(out, body, 0, style->window.fixed_background.data.color); + nk_fill_rect(out, body, style->window.rounding, style->window.fixed_background.data.color); break; } } @@ -505,7 +505,7 @@ nk_panel_end(struct nk_context *ctx) : (window->bounds.y + window->bounds.h)); struct nk_rect b = window->bounds; b.h = padding_y - window->bounds.y; - nk_stroke_rect(out, b, 0, layout->border, border_color); + nk_stroke_rect(out, b, style->window.rounding, layout->border, border_color); } /* scaler */