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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user