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:
authorHarley Acheson <harley.acheson@gmail.com>2019-06-17 20:21:27 +0300
committerHarley Acheson <harley.acheson@gmail.com>2019-06-17 20:23:07 +0300
commit7c229172a6f2cc90510aca0464f1dcce1fe5a2b3 (patch)
treef59c246551e9d73690d2c2f4b4c3c7d641e93588 /source/blender/editors/interface/resources.c
parentd8e7d8b82c6abc35b2f1463d506a9aec20825b86 (diff)
UI_GetThemeColorShadeAlpha4fv not clamping alpha channel
Fixing small error in UI_GetThemeColorShadeAlpha4fv() clamping blue channel twice instead of alpha Differential Revision: https://developer.blender.org/D5048 Reviewed by Brecht Van Lommel
Diffstat (limited to 'source/blender/editors/interface/resources.c')
-rw-r--r--source/blender/editors/interface/resources.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c
index cbda4767722..e281c6c9e9c 100644
--- a/source/blender/editors/interface/resources.c
+++ b/source/blender/editors/interface/resources.c
@@ -1239,7 +1239,7 @@ void UI_GetThemeColorShadeAlpha4fv(int colorid, int coloffset, int alphaoffset,
b = coloffset + (int)cp[2];
CLAMP(b, 0, 255);
a = alphaoffset + (int)cp[3];
- CLAMP(b, 0, 255);
+ CLAMP(a, 0, 255);
col[0] = ((float)r) / 255.0f;
col[1] = ((float)g) / 255.0f;