|
|
@ -404,8 +404,8 @@ void KisGrayU16ColorSpace::compositeBurn(TQ_UINT8 *dstRowStart, TQ_INT32 dstRowS
|
|
|
|
TQ_UINT16 srcColor = src[channel];
|
|
|
|
TQ_UINT16 srcColor = src[channel];
|
|
|
|
TQ_UINT16 dstColor = dst[channel];
|
|
|
|
TQ_UINT16 dstColor = dst[channel];
|
|
|
|
|
|
|
|
|
|
|
|
srcColor = kMin(((UINT16_MAX - dstColor) * (UINT16_MAX + 1u)) / (srcColor + 1u), UINT16_MAX);
|
|
|
|
srcColor = kMin(((UINT16_MAX - dstColor) * (UINT16_MAX + 1u)) / (srcColor + 1u), (unsigned)UINT16_MAX);
|
|
|
|
srcColor = kClamp(UINT16_MAX - srcColor, 0u, UINT16_MAX);
|
|
|
|
srcColor = kClamp((unsigned)UINT16_MAX - srcColor, 0u, (unsigned)UINT16_MAX);
|
|
|
|
|
|
|
|
|
|
|
|
TQ_UINT16 newColor = UINT16_BLEND(srcColor, dstColor, srcBlend);
|
|
|
|
TQ_UINT16 newColor = UINT16_BLEND(srcColor, dstColor, srcBlend);
|
|
|
|
|
|
|
|
|
|
|
|