Use correct style for progressbar cursor.

master
Roman Akberov 2017-09-24 18:22:23 +02:00
parent 0b95e3e5a0
commit 31c88a8ccf
1 changed files with 1 additions and 1 deletions

View File

@ -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);