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:
Diffstat (limited to 'source/blender/editors/mask/mask_draw.c')
-rw-r--r--source/blender/editors/mask/mask_draw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/mask/mask_draw.c b/source/blender/editors/mask/mask_draw.c
index 3b16497f09f..4bbb656c475 100644
--- a/source/blender/editors/mask/mask_draw.c
+++ b/source/blender/editors/mask/mask_draw.c
@@ -349,9 +349,9 @@ static void draw_spline_points(const bContext *C,
static void mask_color_active_tint(uchar r_rgb[4], const uchar rgb[4], const bool is_active)
{
if (!is_active) {
- r_rgb[0] = (uchar)((((int)(rgb[0])) + 128) / 2);
- r_rgb[1] = (uchar)((((int)(rgb[1])) + 128) / 2);
- r_rgb[2] = (uchar)((((int)(rgb[2])) + 128) / 2);
+ r_rgb[0] = (uchar)(((int)rgb[0] + 128) / 2);
+ r_rgb[1] = (uchar)(((int)rgb[1] + 128) / 2);
+ r_rgb[2] = (uchar)(((int)rgb[2] + 128) / 2);
r_rgb[3] = rgb[3];
}
else {