Skip to content

Commit

Permalink
Removed color factoring for item colored selectables
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Ahnstedt committed Nov 20, 2023
1 parent afbd133 commit 39e2ee3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nuklear.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/nuklear_selectable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 39e2ee3

Please sign in to comment.