diff options
Diffstat (limited to 'src/XPM.cxx')
-rw-r--r-- | src/XPM.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XPM.cxx b/src/XPM.cxx index 42c4dd96a..5c7d8fee0 100644 --- a/src/XPM.cxx +++ b/src/XPM.cxx @@ -266,7 +266,7 @@ void RGBAImage::SetPixel(int x, int y, ColourRGBA colour) noexcept { namespace { -unsigned char AlphaMultiplied(unsigned char value, unsigned char alpha) { +constexpr unsigned char AlphaMultiplied(unsigned char value, unsigned char alpha) noexcept { return (value * alpha / UCHAR_MAX) & 0xffU; } |