== 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/
This commit is contained in:
Peter Schlaile
2012-05-27 20:57:24 +00:00
parent 032d83ecc4
commit 4474a90d8b

View File

@@ -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);
}
}