This commit is contained in:
Blaž Kristan
2025-12-19 14:15:42 +01:00
parent eca002b655
commit dc76ff669b

View File

@@ -1572,10 +1572,11 @@ void WS2812FX::blendSegment(const Segment &topSegment) const {
// we need to blend old segment using fade as pixels are not clipped // we need to blend old segment using fade as pixels are not clipped
c_a = color_blend16(c_a, segO->getPixelColorRaw(i), progInv); c_a = color_blend16(c_a, segO->getPixelColorRaw(i), progInv);
} else if (blendingStyle != BLEND_STYLE_FADE) { } else if (blendingStyle != BLEND_STYLE_FADE) {
// if we have global brightness change (not On/Off change) we will ignore transition style and just fade brightness (see led.cpp)
// workaround for On/Off transition // workaround for On/Off transition
// (bri != briT) && !bri => from On to Off // (bri != briT) && !bri => from On to Off
// (bri != briT) && bri => from Off to On // (bri != briT) && bri => from Off to On
if ((!clipped && (bri != briT) && !bri) || (clipped && (bri != briT) && bri)) c_a = BLACK; if ((briOld == 0 || bri == 0) && ((!clipped && (bri != briT) && !bri) || (clipped && (bri != briT) && bri))) c_a = BLACK;
} }
// map into frame buffer // map into frame buffer
i = k; // restore index if we were PUSHing i = k; // restore index if we were PUSHing