Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-01-14 06:39:55 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-01-14 06:39:55 +0400
commit20cea92db13ce3927fbf29b7bae57a74db0d46b5 (patch)
tree3a24af5ebdfc2274186bc53e5cccb0822ab83ef1 /source/blender/editors/interface
parent0f302316864abea1a97c6f48c088aebfbebd34e1 (diff)
Code Cleanup: minor edits to recent commit
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r--source/blender/editors/interface/interface_panel.c17
1 files changed, 8 insertions, 9 deletions
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);