blends FX - hotfix for black pixels

fixing an off-by-one error to solve #4335
This commit is contained in:
Frank 2024-12-02 21:35:48 +01:00 committed by GitHub
parent 99427c2ef7
commit ae8c3b02d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4497,7 +4497,7 @@ uint16_t mode_blends(void) {
unsigned offset = 0;
for (unsigned i = 0; i < SEGLEN; i++) {
SEGMENT.setPixelColor(i, pixels[offset++]);
if (offset > pixelLen) offset = 0;
if (offset >= pixelLen) offset = 0;
}
return FRAMETIME;