|
@@ -23892,8 +23892,8 @@ nk_do_button(nk_flags *state, struct nk_command_buffer *out, struct nk_rect r,
|
|
|
/* calculate button content space */
|
|
|
content->x = r.x + style->padding.x + style->border + style->rounding;
|
|
|
content->y = r.y + style->padding.y + style->border + style->rounding;
|
|
|
- content->w = r.w - (2 * style->padding.x + style->border + style->rounding*2);
|
|
|
- content->h = r.h - (2 * style->padding.y + style->border + style->rounding*2);
|
|
|
+ content->w = r.w - (2 * (style->padding.x + style->border + style->rounding));
|
|
|
+ content->h = r.h - (2 * (style->padding.y + style->border + style->rounding));
|
|
|
|
|
|
/* execute button behavior */
|
|
|
bounds.x = r.x - style->touch_padding.x;
|