Fix [#21516] UI artifacts in array modifier

Modify the glClearColor used to draw disabled buttons, when creating a ROUNDBOX
ui element. Made a convenience function and rippled it though, too.
This commit is contained in:
Matt Ebb
2010-04-06 07:02:16 +00:00
parent b9d60f2010
commit 5304a65b50
18 changed files with 57 additions and 83 deletions
@@ -749,6 +749,8 @@ void uiDrawBlock(const bContext *C, uiBlock *block)
wmOrtho2(-0.01f, ar->winx-0.01f, -0.01f, ar->winy-0.01f);
UI_ThemeClearColor(TH_BACK);
/* back */
if(block->flag & UI_BLOCK_LOOP)
ui_draw_menu_back(&style, block, &rect);