Update nuklear_xlib.h
The new checkbox toggle look was off by a couple of pixels. This commit fixes that by removing the "line thickness" operation performed on its width before drawing.
This commit is contained in:
parent
bc40ecc00f
commit
1b8b90e0b9
@ -1012,8 +1012,8 @@ nk_xlib_render(Drawable screen, struct nk_color clear)
|
||||
} break;
|
||||
case NK_COMMAND_RECT: {
|
||||
const struct nk_command_rect *r = (const struct nk_command_rect *)cmd;
|
||||
nk_xsurf_stroke_rect(surf, r->x, r->y, NK_MAX(r->w -r->line_thickness, 0),
|
||||
NK_MAX(r->h - r->line_thickness, 0), (unsigned short)r->rounding,
|
||||
nk_xsurf_stroke_rect(surf, r->x, r->y, r->w,
|
||||
r->h, (unsigned short)r->rounding,
|
||||
r->line_thickness, r->color);
|
||||
} break;
|
||||
case NK_COMMAND_RECT_FILLED: {
|
||||
|
Loading…
Reference in New Issue
Block a user