diff options
author | B. Stack <bgstack15@gmail.com> | 2023-10-28 08:29:29 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2023-10-28 08:29:29 -0400 |
commit | d30e0825ff61e9d8bae68cdfd2798da0badcf255 (patch) | |
tree | a55034c5f47324d2220e40639c6c632a895c5648 /xBRZ/src | |
parent | add upstream 13.0 (diff) | |
download | FreeFileSync-d30e0825ff61e9d8bae68cdfd2798da0badcf255.tar.gz FreeFileSync-d30e0825ff61e9d8bae68cdfd2798da0badcf255.tar.bz2 FreeFileSync-d30e0825ff61e9d8bae68cdfd2798da0badcf255.zip |
add upstream 13.113.1
Diffstat (limited to 'xBRZ/src')
-rw-r--r-- | xBRZ/src/xbrz_tools.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xBRZ/src/xbrz_tools.h b/xBRZ/src/xbrz_tools.h index 32e2090f..d83e5acc 100644 --- a/xBRZ/src/xbrz_tools.h +++ b/xBRZ/src/xbrz_tools.h @@ -108,7 +108,7 @@ inline unsigned char demultiply(unsigned char c, unsigned char alpha) { return static_cast<unsigned char>(alpha == 0 ? 0 : - std::clamp(uintDivRound(static_cast<unsigned int>(c) * 255, alpha), 0U, 255U)); + std::min(uintDivRound(static_cast<unsigned int>(c) * 255, alpha), 255U)); } |