Skip to content
Snippets Groups Projects
Commit de9dc412 authored by Deif Lou's avatar Deif Lou Committed by Dmitry Kazakov
Browse files

Fix destination atop rendering

BUG:423465
parent ed9a3f9c
No related branches found
No related tags found
No related merge requests found
......@@ -57,9 +57,7 @@ public:
// blend the color channels as if we were painting on the layer below
for (qint8 channel = 0; channel < channels_nb; ++channel)
if(channel != alpha_pos && (allChannelFlags || channelFlags.testBit(channel))) {
/*each color blended in proportion to their calculated opacity*/
channels_type srcMult= mul(src[channel], appliedAlpha);
dst[channel] = lerp(srcMult,dst[channel],dstAlpha);
dst[channel] = lerp(src[channel],dst[channel],dstAlpha);
}
}
else if (srcAlpha != zeroValue<channels_type>()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment