small fix for Fireworks 1D (MM specific)

effect did not clean up its canvas initially, leading to sporadic "lost pixels".
This commit is contained in:
Frank
2024-04-30 19:09:05 +02:00
parent a01d86e8e0
commit bf5c95646c

View File

@@ -3552,7 +3552,10 @@ uint16_t mode_exploding_fireworks(void)
if (SEGLEN == 1) return mode_static();
const uint16_t cols = strip.isMatrix ? SEGMENT.virtualWidth() : 1;
const uint16_t rows = strip.isMatrix ? SEGMENT.virtualHeight() : SEGMENT.virtualLength();
if (SEGENV.call == 0) SEGENV.setUpLeds(); // WLEDMM use lossless getPixelColor()
if (SEGENV.call == 0) {
SEGENV.setUpLeds(); // WLEDMM use lossless getPixelColor()
SEGMENT.fill(BLACK);
}
//allocate segment data
uint16_t maxData = FAIR_DATA_PER_SEG; //ESP8266: 256 ESP32: 640