diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-05-28 14:39:22 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-05-28 14:39:22 +0400 |
commit | 9ed75681b68edf7c8620fd3f18547ea19e3506cd (patch) | |
tree | 6e1e772c50c3a897cc28592bbb1faa9c7713a1f0 /source/blender/blenkernel/intern | |
parent | e442adf9cfd350b17191fb3496ff40e4fa31be9d (diff) |
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.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/sequencer.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); } } |