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:
authorYevgeny Makarov <jenkm>2020-01-28 12:13:53 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2020-01-28 12:14:13 +0300
commit50d65d5a2e533c0548d00d2840aeb9fa04d3e463 (patch)
tree55bdcde40a9bab06b81f70d3f02689aa3f91711b /source/blender/editors/interface
parent2a39fb13451336cda609594fbee4d034c068bd22 (diff)
Fix: icon alpha theme option does not affect toolbar icons correctly
Differential Revision: https://developer.blender.org/D6535
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r--source/blender/editors/interface/interface_icons.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_icons.c b/source/blender/editors/interface/interface_icons.c
index 5f25316cf25..4770a85460b 100644
--- a/source/blender/editors/interface/interface_icons.c
+++ b/source/blender/editors/interface/interface_icons.c
@@ -1506,7 +1506,7 @@ static void icon_draw_rect(float x,
return;
}
/* modulate color */
- float col[4] = {1.0f, 1.0f, 1.0f, alpha};
+ float col[4] = {alpha, alpha, alpha, alpha};
/* rect contains image in 'rendersize', we only scale if needed */
if (rw != w || rh != h) {