From a2c002acb9e7771645c25203576e1bd09a84561a Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Tue, 25 Mar 2014 01:24:40 +0200 Subject: [PATCH] Add a slight shadow to the radial operator text. It helps when brush color is close to the cursor color. --- source/blender/windowmanager/intern/wm_operators.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 50db23303ff..897ffa4ebd4 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); }