diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-09-27 19:25:50 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-09-27 19:39:50 +0300 |
commit | 28324143c4ce657c4de773c8363b93b27625243e (patch) | |
tree | 3b1ca0b83f38038a6c4e9ea12fe054d776b36c41 /source/blender/blenlib | |
parent | 99fa874c858dbbe10be70d3be03ad337780c1ec0 (diff) |
UI: draw mono icons with button type text color, instead of area text color.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_math_vector.h | 1 | ||||
-rw-r--r-- | source/blender/blenlib/intern/math_vector_inline.c | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_vector.h b/source/blender/blenlib/BLI_math_vector.h index 0a9258f47ac..0df407b37df 100644 --- a/source/blender/blenlib/BLI_math_vector.h +++ b/source/blender/blenlib/BLI_math_vector.h @@ -123,6 +123,7 @@ MINLINE void mul_v2_v2(float r[2], const float a[2]); MINLINE void mul_v3_v3(float r[3], const float a[3]); MINLINE void mul_v3_v3v3(float r[3], const float a[3], const float b[3]); MINLINE void mul_v4_fl(float r[4], float f); +MINLINE void mul_v4_v4(float r[4], const float a[4]); MINLINE void mul_v4_v4fl(float r[3], const float a[3], float f); MINLINE void mul_v2_v2_cw(float r[2], const float mat[2], const float vec[2]); MINLINE void mul_v2_v2_ccw(float r[2], const float mat[2], const float vec[2]); diff --git a/source/blender/blenlib/intern/math_vector_inline.c b/source/blender/blenlib/intern/math_vector_inline.c index c4535eacefa..297fa9479da 100644 --- a/source/blender/blenlib/intern/math_vector_inline.c +++ b/source/blender/blenlib/intern/math_vector_inline.c @@ -459,6 +459,14 @@ MINLINE void mul_v4_fl(float r[4], float f) r[3] *= f; } +MINLINE void mul_v4_v4(float r[4], const float a[4]) +{ + r[0] *= a[0]; + r[1] *= a[1]; + r[2] *= a[2]; + r[3] *= a[3]; +} + MINLINE void mul_v4_v4fl(float r[4], const float a[4], float f) { r[0] = a[0] * f; |