Defines: replace ELEM3-16 with ELEM(...), that can take varargs
This commit is contained in:
@@ -848,7 +848,7 @@ static void widget_draw_icon(const uiBut *but, BIFIconID icon, float alpha, cons
|
||||
height = ICON_DEFAULT_HEIGHT / aspect;
|
||||
|
||||
/* calculate blend color */
|
||||
if (ELEM4(but->type, TOG, ROW, TOGN, LISTROW)) {
|
||||
if (ELEM(but->type, TOG, ROW, TOGN, LISTROW)) {
|
||||
if (but->flag & UI_SELECT) {}
|
||||
else if (but->flag & UI_ACTIVE) {}
|
||||
else alpha = 0.5f;
|
||||
|
||||
Reference in New Issue
Block a user