diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-03-25 03:24:40 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-03-25 03:25:01 +0400 |
commit | a2c002acb9e7771645c25203576e1bd09a84561a (patch) | |
tree | 7b01282b8f7c7fd448709e082e0a11014e7c92c3 | |
parent | f0ca40f9c1cc17e0345b06b77ad0c0fad6880242 (diff) |
Add a slight shadow to the radial operator text. It helps when brush
color is close to the cursor color.
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); } |