preview buttons: tiny optimization
This commit is contained in:
parent
3a7691b73f
commit
6b5f3f5fef
|
@ -1536,7 +1536,9 @@ static void widget_draw_text_icon(uiFontStyle *fstyle, uiWidgetColors *wcol, uiB
|
|||
|
||||
/* draw icon in rect above the space reserved for the label */
|
||||
rect->ymin += text_size;
|
||||
widget_draw_icon(but, icon, alpha, rect, show_menu_icon);
|
||||
glEnable(GL_BLEND);
|
||||
widget_draw_preview(icon, alpha, rect);
|
||||
glDisable(GL_BLEND);
|
||||
|
||||
/* offset rect to draw label in*/
|
||||
rect->ymin -= text_size;
|
||||
|
|
Loading…
Reference in New Issue