Merge pull request #496 from MartB/patch-1

RGBTransform fix gamma adjustment of green, blue always taking red value
This commit is contained in:
Rick van Hattem 2018-10-24 13:43:57 +02:00 committed by GitHub
commit ab6de13e8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;