diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-02 17:04:53 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-03 13:56:39 +0300 |
commit | 44d47526af771ce3434950441aa449a6d6eeb9d3 (patch) | |
tree | d4464c322804124d6c3d3b080f75d6683d184614 /source/blender/editors/interface/interface_icons.c | |
parent | e5387eef1890b7af7320455cccf68303ebecb086 (diff) |
Fix icon alpha theme option not working for monochrome icons.
Diffstat (limited to 'source/blender/editors/interface/interface_icons.c')
-rw-r--r-- | source/blender/editors/interface/interface_icons.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_icons.c b/source/blender/editors/interface/interface_icons.c index 70e9a25d086..162687c64ff 100644 --- a/source/blender/editors/interface/interface_icons.c +++ b/source/blender/editors/interface/interface_icons.c @@ -1536,7 +1536,8 @@ static void icon_draw_size( if (rgb) { mul_v3_v3(color, rgb); } - color[3] *= alpha; + + mul_v4_fl(color, alpha); GPU_blend_set_func(GPU_ONE, GPU_ONE_MINUS_SRC_ALPHA); icon_draw_texture(x, y, (float)w, (float)h, di->data.texture.x, di->data.texture.y, |