[Bf-blender-cvs] [7493a2b3c0] blender2.8: set default color for BLF fonts
Mike Erwin
noreply at git.blender.org
Wed Feb 1 22:22:35 CET 2017
Commit: 7493a2b3c09080a9700178c69fc9c49b5a6d7493
Author: Mike Erwin
Date: Wed Feb 1 16:20:40 2017 -0500
Branches: blender2.8
https://developer.blender.org/rB7493a2b3c09080a9700178c69fc9c49b5a6d7493
set default color for BLF fonts
Set to an annoying bright color so we can see where to add BLF_color calls.
===================================================================
M source/blender/blenfont/intern/blf_font.c
===================================================================
diff --git a/source/blender/blenfont/intern/blf_font.c b/source/blender/blenfont/intern/blf_font.c
index 71350a0f8d..d0293eccf3 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;
More information about the Bf-blender-cvs
mailing list