preview buttons: tiny optimization

This commit is contained in:
Inês Almeida 2015-05-25 15:38:12 +01:00
parent 3a7691b73f
commit 6b5f3f5fef
1 changed files with 3 additions and 1 deletions

View File

@ -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;