From 39e2ee3ce4ccaef3f41319028261c23780eae7ac Mon Sep 17 00:00:00 2001 From: Jacob Ahnstedt Date: Mon, 20 Nov 2023 14:02:12 +0100 Subject: [PATCH] Removed color factoring for item colored selectables --- nuklear.h | 2 +- src/nuklear_selectable.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nuklear.h b/nuklear.h index 88ecccf..583dc03 100644 --- a/nuklear.h +++ b/nuklear.h @@ -25062,7 +25062,7 @@ nk_draw_selectable(struct nk_command_buffer *out, break; case NK_STYLE_ITEM_COLOR: text.background = background->data.color; - nk_fill_rect(out, *bounds, style->rounding, nk_rgb_factor(background->data.color, style->color_factor)); + nk_fill_rect(out, *bounds, style->rounding, background->data.color); break; } if (icon) { diff --git a/src/nuklear_selectable.c b/src/nuklear_selectable.c index 3f4bfc4..1b8c0b2 100644 --- a/src/nuklear_selectable.c +++ b/src/nuklear_selectable.c @@ -56,7 +56,7 @@ nk_draw_selectable(struct nk_command_buffer *out, break; case NK_STYLE_ITEM_COLOR: text.background = background->data.color; - nk_fill_rect(out, *bounds, style->rounding, nk_rgb_factor(background->data.color, style->color_factor)); + nk_fill_rect(out, *bounds, style->rounding, background->data.color); break; } if (icon) {