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:
MartB 2018-01-26 10:49:49 +01:00 committed by GitHub
parent e438bc62a6
commit 2afbc26bf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -144,8 +144,8 @@ void RgbTransform::transform(uint8_t & red, uint8_t & green, uint8_t & blue)
{
// apply gamma
red = _mappingR[red];
green = _mappingR[green];
blue = _mappingR[blue];
green = _mappingG[green];
blue = _mappingB[blue];
// apply brightnesss
int rgbSum = red+green+blue;