From 38e569cb1fdcf75645344a487b53e3d514153a2f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 15 Feb 2020 09:48:30 +1100 Subject: [PATCH] Cleanup: use UI_GetThemeColor3ubv when alpha is ignored --- source/blender/draw/engines/overlay/overlay_extra.c | 2 +- source/blender/editors/space_outliner/outliner_draw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/draw/engines/overlay/overlay_extra.c b/source/blender/draw/engines/overlay/overlay_extra.c index 354d206dd44..b40e95d538c 100644 --- a/source/blender/draw/engines/overlay/overlay_extra.c +++ b/source/blender/draw/engines/overlay/overlay_extra.c @@ -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(); diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index 12704777b05..cc1222aa47b 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -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;