From 9ed75681b68edf7c8620fd3f18547ea19e3506cd Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 28 May 2012 10:39:22 +0000 Subject: Sequencer: replace clamp+round of multiplied color value with FTOCHAR macro, Should solve issues with building blender in release environment, should be no functional changes. --- source/blender/blenkernel/intern/sequencer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/blender/blenkernel/intern/sequencer.c') diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c index 5892a6a7b3e..63cabf80eae 100644 --- a/source/blender/blenkernel/intern/sequencer.c +++ b/source/blender/blenkernel/intern/sequencer.c @@ -1552,8 +1552,7 @@ static void make_cb_table_byte(float lift, float gain, float gamma, for (y = 0; y < 256; y++) { float v = color_balance_fl((float)y * (1.0f / 255.0f), lift, gain, gamma, mul); - CLAMP(v, 0.0f, 1.0f); - table[y] = round(v * 255); + table[y] = FTOCHAR(v); } } -- cgit v1.2.3