diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-10-16 02:40:41 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-10-16 02:40:41 +0300 |
commit | a8dc3f4596ef5aed70ceeaa7e3029cb782a0f0ef (patch) | |
tree | 8a25f8bb2cb975acc67704aed72a1c32724eea06 /source/blender/blenfont/intern/blf_glyph.c | |
parent | 878938f203b4a404ad238d63ff1636a6c6067d72 (diff) |
BLF: make blurry text an optional (disabled) feature
While trying to simplify text drawing, noticed no Blender code uses the blur feature. Hopefully scripts don't use it!
Diffstat (limited to 'source/blender/blenfont/intern/blf_glyph.c')
-rw-r--r-- | source/blender/blenfont/intern/blf_glyph.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenfont/intern/blf_glyph.c b/source/blender/blenfont/intern/blf_glyph.c index 3d96260f61b..a74210cf961 100644 --- a/source/blender/blenfont/intern/blf_glyph.c +++ b/source/blender/blenfont/intern/blf_glyph.c @@ -490,6 +490,7 @@ void blf_glyph_render(FontBLF *font, GlyphBLF *g, float x, float y) } } +#if BLF_BLUR_ENABLE switch (font->blur) { case 3: blf_texture3_draw(font->orig_col, g->uv, rect.xmin, rect.ymin, rect.xmax, rect.ymax); @@ -501,4 +502,8 @@ void blf_glyph_render(FontBLF *font, GlyphBLF *g, float x, float y) immAttrib4fv(BLF_COLOR_ID, font->orig_col); blf_texture_draw(g->uv, rect.xmin, rect.ymin, rect.xmax, rect.ymax); } +#else + immAttrib4fv(BLF_COLOR_ID, font->orig_col); + blf_texture_draw(g->uv, rect.xmin, rect.ymin, rect.xmax, rect.ymax); +#endif } |