[Bf-blender-cvs] [a2c002a] master: Add a slight shadow to the radial operator text. It helps when brush color is close to the cursor color.
Antony Riakiotakis
noreply at git.blender.org
Tue Mar 25 00:25:19 CET 2014
Commit: a2c002acb9e7771645c25203576e1bd09a84561a
Author: Antony Riakiotakis
Date: Tue Mar 25 01:24:40 2014 +0200
https://developer.blender.org/rBa2c002acb9e7771645c25203576e1bd09a84561a
Add a slight shadow to the radial operator text. It helps when brush
color is close to the cursor color.
===================================================================
M source/blender/windowmanager/intern/wm_operators.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index 50db233..897ffa4 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -3835,10 +3835,16 @@ static void radial_control_paint_cursor(bContext *C, int x, int y, void *customd
BLF_size(fontid, 1.5 * fstyle_points, 1.0f / U.dpi);
BLF_width_and_height(fontid, str, strdrawlen, &strwidth, &strheight);
+ BLF_enable(fontid, BLF_SHADOW);
+ BLF_shadow(fontid, 3, 0.0f, 0.0f, 0.0f, 0.5f);
+ BLF_shadow_offset(fontid, 1, -1);
+
/* draw value */
BLF_position(fontid, -0.5f * strwidth, -0.5f * strheight, 0.0f);
BLF_draw(fontid, str, strdrawlen);
+ BLF_disable(fontid, BLF_SHADOW);
+
glDisable(GL_BLEND);
glDisable(GL_LINE_SMOOTH);
}
More information about the Bf-blender-cvs
mailing list