浏览代码

Removed color factoring for item colored selectables

Jacob Ahnstedt 1 年之前
父节点
当前提交
39e2ee3ce4
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      nuklear.h
  2. 1 1
      src/nuklear_selectable.c

+ 1 - 1
nuklear.h

@@ -25062,7 +25062,7 @@ nk_draw_selectable(struct nk_command_buffer *out,
             break;
             break;
         case NK_STYLE_ITEM_COLOR:
         case NK_STYLE_ITEM_COLOR:
             text.background = background->data.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;
             break;
     }
     }
     if (icon) {
     if (icon) {

+ 1 - 1
src/nuklear_selectable.c

@@ -56,7 +56,7 @@ nk_draw_selectable(struct nk_command_buffer *out,
             break;
             break;
         case NK_STYLE_ITEM_COLOR:
         case NK_STYLE_ITEM_COLOR:
             text.background = background->data.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;
             break;
     }
     }
     if (icon) {
     if (icon) {