Removed color factoring for item colored selectables

This commit is contained in:
Jacob Ahnstedt 2023-11-20 14:02:12 +01:00
parent afbd133914
commit 39e2ee3ce4
2 changed files with 2 additions and 2 deletions

View File

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

View File

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