mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
RGBTransform fix gamma adjustment of green, blue always taking red value
This fixes #493 and is also present on the latest beta rework branch.
This commit is contained in:
parent
e438bc62a6
commit
2afbc26bf9
@ -144,8 +144,8 @@ void RgbTransform::transform(uint8_t & red, uint8_t & green, uint8_t & blue)
|
|||||||
{
|
{
|
||||||
// apply gamma
|
// apply gamma
|
||||||
red = _mappingR[red];
|
red = _mappingR[red];
|
||||||
green = _mappingR[green];
|
green = _mappingG[green];
|
||||||
blue = _mappingR[blue];
|
blue = _mappingB[blue];
|
||||||
|
|
||||||
// apply brightnesss
|
// apply brightnesss
|
||||||
int rgbSum = red+green+blue;
|
int rgbSum = red+green+blue;
|
||||||
|
Loading…
Reference in New Issue
Block a user