From 20cea92db13ce3927fbf29b7bae57a74db0d46b5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 14 Jan 2014 13:39:55 +1100 Subject: Code Cleanup: minor edits to recent commit --- source/blender/editors/interface/interface_panel.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'source/blender/editors/interface') diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index 541f6fa65ac..a330f31bd34 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -1541,17 +1541,16 @@ void UI_panel_category_draw_all(ARegion *ar, const char *category_id_active) BLF_position(fontid, rct->xmax - text_v_ofs, rct->ymin + tab_v_pad_text, 0.0f); /* tab titles */ - { - glColor3ubv(theme_col_text); - /* draw white shadow to give text more depth */ - BLF_enable(fontid, BLF_SHADOW); - BLF_shadow(fontid, 3, 1.0f, 1.0f, 1.0f, 0.25f); - BLF_shadow_offset(fontid, -1, -1); - } - - BLF_draw(fontid, category_id_draw, category_draw_len); + /* first draw shadow, in this case white */ + glColor3ubv(theme_col_text); + /* draw white shadow to give text more depth */ + BLF_enable(fontid, BLF_SHADOW); + BLF_shadow(fontid, 3, 1.0f, 1.0f, 1.0f, 0.25f); + BLF_shadow_offset(fontid, -1, -1); + /* main tab title */ + BLF_draw(fontid, category_id_draw, category_draw_len); glDisable(GL_BLEND); -- cgit v1.2.3