[Bf-blender-cvs] [20cea92] master: Code Cleanup: minor edits to recent commit

Campbell Barton noreply at git.blender.org
Tue Jan 14 03:47:54 CET 2014


Commit: 20cea92db13ce3927fbf29b7bae57a74db0d46b5
Author: Campbell Barton
Date:   Tue Jan 14 13:39:55 2014 +1100
https://developer.blender.org/rB20cea92db13ce3927fbf29b7bae57a74db0d46b5

Code Cleanup: minor edits to recent commit

===================================================================

M	source/blender/editors/interface/interface_panel.c

===================================================================

diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c
index 541f6fa..a330f31 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);




More information about the Bf-blender-cvs mailing list