diff --git a/libsrc/utils/HslTransform.cpp b/libsrc/utils/HslTransform.cpp index 8d391adf..07e9d203 100644 --- a/libsrc/utils/HslTransform.cpp +++ b/libsrc/utils/HslTransform.cpp @@ -66,7 +66,10 @@ void HslTransform::transform(uint8_t & red, uint8_t & green, uint8_t & blue) con float l = luminance * _luminanceGain; if (l < _luminanceMinimum) + { + saturation *= l/_luminanceMinimum; l = _luminanceMinimum; + } if (l > 1.0f) luminance = 1.0f; else