Skip to content

Commit

Permalink
Merge pull request #652 from SchelZ/master
Browse files Browse the repository at this point in the history
Fix rounding of panels
  • Loading branch information
RobLoach committed Jun 23, 2024
2 parents 504f831 + d3d4a3e commit aaee300
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nuklear_panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit aaee300

Please sign in to comment.