mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Reduce saturation in backlight (#651)
Former-commit-id: c2c4fd6f957c3623e03c37393cf3c03a7a27dc1e
This commit is contained in:
parent
06afe06774
commit
45dff6d1d3
@ -66,7 +66,10 @@ void HslTransform::transform(uint8_t & red, uint8_t & green, uint8_t & blue) con
|
|||||||
|
|
||||||
float l = luminance * _luminanceGain;
|
float l = luminance * _luminanceGain;
|
||||||
if (l < _luminanceMinimum)
|
if (l < _luminanceMinimum)
|
||||||
|
{
|
||||||
|
saturation *= l/_luminanceMinimum;
|
||||||
l = _luminanceMinimum;
|
l = _luminanceMinimum;
|
||||||
|
}
|
||||||
if (l > 1.0f)
|
if (l > 1.0f)
|
||||||
luminance = 1.0f;
|
luminance = 1.0f;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user