Commit ca189b7a authored by Thomas Manni's avatar Thomas Manni

Bug 758769 - Smudge tool not working correctly...

...with alpha layers creates black edges

Fix the missing division in the pixels blending formula
parent 33a61c7f
......@@ -394,7 +394,7 @@ gimp_gegl_smudge_blend (GeglBuffer *top_buffer,
{
for (b = 0; b < 3; b++)
dest[b] =
bottom[b] + (bottom[b] * a1 + top[b] * a2 - a * bottom[b]);
bottom[b] + (bottom[b] * a1 + top[b] * a2 - a * bottom[b]) / a;
dest[3] = a;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment