diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-02-02 03:00:30 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-02-02 03:00:51 +0300 |
commit | 8e05a5bf8c37174d1019b9dc7efd7a53831f292a (patch) | |
tree | c1018b60c002ca27e949b74f9670f2b77cbb550b /source/blender/blenfont/BLF_api.h | |
parent | 64b4a3185c263f5982bb3ecd324f1befb42531bd (diff) |
fix build: BLF Theme color
blenderplayer uses BLF but not Editor UI, so we got a link error for the missing UI_GetThemeColor function.
Moved the new function from BLF to UI.
@Blendify reported problem in IRC
Diffstat (limited to 'source/blender/blenfont/BLF_api.h')
-rw-r--r-- | source/blender/blenfont/BLF_api.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenfont/BLF_api.h b/source/blender/blenfont/BLF_api.h index 856234dad48..b6fc42d774e 100644 --- a/source/blender/blenfont/BLF_api.h +++ b/source/blender/blenfont/BLF_api.h @@ -65,7 +65,6 @@ void BLF_position(int fontid, float x, float y, float z); void BLF_size(int fontid, int size, int dpi); /* goal: small but useful color API */ -void BLF_ThemeColor(int fontid, int colorid); void BLF_color4ubv(int fontid, const unsigned char rgba[4]); void BLF_color3ubv(int fontid, const unsigned char rgb[3]); void BLF_color3ubv_alpha(int fontid, const unsigned char rgb[3], unsigned char alpha); @@ -73,6 +72,7 @@ void BLF_color3ub(int fontid, unsigned char r, unsigned char g, unsigned char b) void BLF_color4fv(int fontid, const float rgba[4]); void BLF_color3f(int fontid, float r, float g, float b); void BLF_color3fv_alpha(int fontid, const float rgb[3], float alpha); +/* also available: UI_FontThemeColor(fontid, colorid) */ /* Set a 4x4 matrix to be multiplied before draw the text. * Remember that you need call BLF_enable(BLF_MATRIX) |