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:
authorPeter Schlaile <peter@schlaile.de>2012-05-28 00:57:24 +0400
committerPeter Schlaile <peter@schlaile.de>2012-05-28 00:57:24 +0400
commit4474a90d8b1137409e0ff158f5682c409d2e52c6 (patch)
tree12c7ea2c231fe98fed3095dce51794117fe8ea4e /source/blender/blenkernel/intern/sequencer.c
parent032d83ecc411428a768e0b405fe73066dc6640ea (diff)
== Sequencer / Color balance ==
Make the color balance inner working more accurate in the byte -> byte case, probably also fixing (can't check I'm on 32bit) the bug mentioned on yellow's blog: http://blendervse.wordpress.com/2012/04/02/waiving-the-fullrange-flag/
Diffstat (limited to 'source/blender/blenkernel/intern/sequencer.c')
-rw-r--r--source/blender/blenkernel/intern/sequencer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c
index 8cb8a5a1bf1..5892a6a7b3e 100644
--- a/source/blender/blenkernel/intern/sequencer.c
+++ b/source/blender/blenkernel/intern/sequencer.c
@@ -1553,7 +1553,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] = v * 255;
+ table[y] = round(v * 255);
}
}