diff options
Diffstat (limited to 'chalk/colorspaces/rgb_u16')
-rw-r--r-- | chalk/colorspaces/rgb_u16/kis_rgb_u16_colorspace.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chalk/colorspaces/rgb_u16/kis_rgb_u16_colorspace.cc b/chalk/colorspaces/rgb_u16/kis_rgb_u16_colorspace.cc index 75aa6649..40198c91 100644 --- a/chalk/colorspaces/rgb_u16/kis_rgb_u16_colorspace.cc +++ b/chalk/colorspaces/rgb_u16/kis_rgb_u16_colorspace.cc @@ -444,8 +444,8 @@ void KisRgbU16ColorSpace::compositeBurn(TQ_UINT8 *dstRowStart, TQ_INT32 dstRowSt TQ_UINT16 srcColor = src[channel]; TQ_UINT16 dstColor = dst[channel]; - srcColor = kMin(((UINT16_MAX - dstColor) * (UINT16_MAX + 1u)) / (srcColor + 1u), UINT16_MAX); - srcColor = kClamp(UINT16_MAX - srcColor, 0u, UINT16_MAX); + srcColor = kMin(((UINT16_MAX - dstColor) * (UINT16_MAX + 1u)) / (srcColor + 1u), (unsigned)UINT16_MAX); + srcColor = kClamp((unsigned)UINT16_MAX - srcColor, 0u, (unsigned)UINT16_MAX); TQ_UINT16 newColor = UINT16_BLEND(srcColor, dstColor, srcBlend); |