forked from bartvdbraak/blender
Add a slight shadow to the radial operator text. It helps when brush
color is close to the cursor color.
This commit is contained in:
parent
f0ca40f9c1
commit
a2c002acb9
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user