Global gamma.

Randomcycle palette bugfix.
This commit is contained in:
Blaz Kristan
2022-09-04 20:17:05 +02:00
parent 42d1ab8a87
commit 787f5f06df
11 changed files with 40 additions and 46 deletions

View File

@@ -564,7 +564,7 @@ void setRealtimePixel(uint16_t i, byte r, byte g, byte b, byte w)
{
uint16_t pix = i + arlsOffset;
if (pix < strip.getLengthTotal()) {
if (!arlsDisableGammaCorrection && strip.gammaCorrectCol) {
if (!arlsDisableGammaCorrection && gammaCorrectCol) {
r = gamma8(r);
g = gamma8(g);
b = gamma8(b);