mirror of
https://github.com/Immediate-Mode-UI/Nuklear.git
synced 2026-12-01 16:56:23 +01:00
Merge pull request #526 from RomanAkberov/master
Use correct style for progressbar cursor.
This commit is contained in:
@@ -14944,7 +14944,7 @@ nk_draw_progress(struct nk_command_buffer *out, nk_flags state,
|
||||
} else nk_draw_image(out, *bounds, &background->data.image, nk_white);
|
||||
|
||||
/* draw cursor */
|
||||
if (background->type == NK_STYLE_ITEM_COLOR) {
|
||||
if (cursor->type == NK_STYLE_ITEM_COLOR) {
|
||||
nk_fill_rect(out, *scursor, style->rounding, cursor->data.color);
|
||||
nk_stroke_rect(out, *scursor, style->rounding, style->border, style->border_color);
|
||||
} else nk_draw_image(out, *scursor, &cursor->data.image, nk_white);
|
||||
|
||||
Reference in New Issue
Block a user