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:
authorClément Foucault <foucault.clem@gmail.com>2017-02-08 00:40:01 +0300
committerJulian Eisel <eiseljulian@gmail.com>2017-02-11 02:39:17 +0300
commit5b10a6bb8e0d2b494abe784f71436adc118f6972 (patch)
treee7d4ccc5571266251e5c4456c5e90cfe29ce458d /source/blender/blenfont/intern
parentb4a01e7f4fde191516a6187d781ebdce45cf48b7 (diff)
OpenGL immediate mode: fix Waveform Font color
Diffstat (limited to 'source/blender/blenfont/intern')
-rw-r--r--source/blender/blenfont/intern/blf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenfont/intern/blf.c b/source/blender/blenfont/intern/blf.c
index 7133c340617..ab7c831f95c 100644
--- a/source/blender/blenfont/intern/blf.c
+++ b/source/blender/blenfont/intern/blf.c
@@ -503,6 +503,12 @@ void BLF_color4fv(int fontid, const float rgba[4])
}
}
+void BLF_color4f(int fontid, float r, float g, float b, float a)
+{
+ float rgba[4] = { r, g, b, a };
+ BLF_color4fv(fontid, rgba);
+}
+
void BLF_color3fv_alpha(int fontid, const float rgb[3], float alpha)
{
float rgba[4];