Cleanup: use UI_GetThemeColor3ubv when alpha is ignored

This commit is contained in:
Campbell Barton 2020-02-15 09:48:30 +11:00
parent 12728d43f8
commit 38e569cb1f
2 changed files with 2 additions and 2 deletions

View File

@ -1350,7 +1350,7 @@ static void OVERLAY_gpencil_color_names(Object *ob)
int theme_id = DRW_object_wire_theme_get(ob, view_layer, NULL);
uchar color[4];
/* Color Management: Exception here as texts are drawn in sRGB space directly. */
UI_GetThemeColor4ubv(theme_id, color);
UI_GetThemeColor3ubv(theme_id, color);
color[3] = 255;
struct DRWTextStore *dt = DRW_text_cache_ensure();

View File

@ -2703,7 +2703,7 @@ static void outliner_draw_iconrow_number(const uiFontStyle *fstyle,
/* Now the numbers. */
uchar text_col[4];
UI_GetThemeColor4ubv(TH_TEXT_HI, text_col);
UI_GetThemeColor3ubv(TH_TEXT_HI, text_col);
text_col[3] = 255;
uiFontStyle fstyle_small = *fstyle;