Cleanup: use UI_GetThemeColor3ubv when alpha is ignored
This commit is contained in:
parent
12728d43f8
commit
38e569cb1f
|
@ -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();
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue