app: burn-mode, invert before blending

This commit is contained in:
Øyvind Kolås 2015-10-15 13:52:20 +02:00
parent 23f118632c
commit 8ca9bfc291
1 changed files with 2 additions and 2 deletions

View File

@ -108,10 +108,10 @@ gimp_operation_burn_mode_process_pixels (gfloat *in,
for (b = RED; b < ALPHA; b++)
{
gfloat comp = (1.0 - in[b]) / layer[b];
gfloat comp = 1.0 - (1.0 - in[b]) / layer[b];
out[b] = comp * ratio + in[b] * (1.0 - ratio);
out[b] = CLAMP (1.0 - out[b], 0.0, 1.0);
out[b] = CLAMP (out[b], 0.0, 1.0);
}
}
else