diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-02-02 00:20:40 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-02-02 00:21:08 +0300 |
commit | 7493a2b3c09080a9700178c69fc9c49b5a6d7493 (patch) | |
tree | 4871fc342e0dd356e7eb732c7128b72206dcbbd7 /source/blender/blenfont | |
parent | ba551014f8fc115b0d816d6d399022a897953059 (diff) |
set default color for BLF fonts
Set to an annoying bright color so we can see where to add BLF_color calls.
Diffstat (limited to 'source/blender/blenfont')
-rw-r--r-- | source/blender/blenfont/intern/blf_font.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/blenfont/intern/blf_font.c b/source/blender/blenfont/intern/blf_font.c index 71350a0f8dc..d0293eccf3a 100644 --- a/source/blender/blenfont/intern/blf_font.c +++ b/source/blender/blenfont/intern/blf_font.c @@ -933,8 +933,6 @@ void blf_font_free(FontBLF *font) static void blf_font_fill(FontBLF *font) { - unsigned int i; - font->aspect[0] = 1.0f; font->aspect[1] = 1.0f; font->aspect[2] = 1.0f; @@ -942,9 +940,15 @@ static void blf_font_fill(FontBLF *font) font->pos[1] = 0.0f; font->angle = 0.0f; - for (i = 0; i < 16; i++) + for (int i = 0; i < 16; i++) font->m[i] = 0; + /* annoying bright color so we can see where to add BLF_color calls */ + font->color[0] = 255; + font->color[1] = 255; + font->color[2] = 0; + font->color[3] = 255; + font->clip_rec.xmin = 0.0f; font->clip_rec.xmax = 0.0f; font->clip_rec.ymin = 0.0f; |