Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2017-02-02 03:00:30 +0300
committerMike Erwin <significant.bit@gmail.com>2017-02-02 03:00:51 +0300
commit8e05a5bf8c37174d1019b9dc7efd7a53831f292a (patch)
treec1018b60c002ca27e949b74f9670f2b77cbb550b /source/blender/blenfont
parent64b4a3185c263f5982bb3ecd324f1befb42531bd (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')
-rw-r--r--source/blender/blenfont/BLF_api.h2
-rw-r--r--source/blender/blenfont/intern/blf.c11
2 files changed, 1 insertions, 12 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)
diff --git a/source/blender/blenfont/intern/blf.c b/source/blender/blenfont/intern/blf.c
index 01feb652f31..4b3a965efdf 100644
--- a/source/blender/blenfont/intern/blf.c
+++ b/source/blender/blenfont/intern/blf.c
@@ -52,8 +52,6 @@
#include "BLF_api.h"
-#include "UI_resources.h"
-
#include "IMB_colormanagement.h"
#ifndef BLF_STANDALONE
@@ -467,15 +465,6 @@ void BLF_blur(int fontid, int size)
}
#endif
-void BLF_ThemeColor(int fontid, int colorid)
-{
- FontBLF *font = blf_get(fontid);
-
- if (font) {
- UI_GetThemeColor4ubv(colorid, font->color);
- }
-}
-
void BLF_color4ubv(int fontid, const unsigned char rgba[4])
{
FontBLF *font = blf_get(fontid);