From 31c88a8ccfd9d220951a304b17d963e43e787ad7 Mon Sep 17 00:00:00 2001 From: Roman Akberov Date: Sun, 24 Sep 2017 18:22:23 +0200 Subject: [PATCH] Use correct style for progressbar cursor. --- nuklear.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuklear.h b/nuklear.h index a7d8eeeb..261e8dfb 100644 --- a/nuklear.h +++ b/nuklear.h @@ -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);