From 00d1fcc5fba677f2a75c6e9be84d62914420fb9d Mon Sep 17 00:00:00 2001 From: Damian Schneider Date: Mon, 9 Jun 2025 17:41:53 +0200 Subject: [PATCH] bugfixes: grouping and missing libArchive (#4718) --- usermods/user_fx/library.json | 5 +++-- wled00/FX_fcn.cpp | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/usermods/user_fx/library.json b/usermods/user_fx/library.json index 9420eecdf..83f6358bf 100644 --- a/usermods/user_fx/library.json +++ b/usermods/user_fx/library.json @@ -1,3 +1,4 @@ { - "name": "user_fx" -} + "name": "user_fx", + "build": { "libArchive": false } +} \ No newline at end of file diff --git a/wled00/FX_fcn.cpp b/wled00/FX_fcn.cpp index 438c36d5a..7d5158100 100755 --- a/wled00/FX_fcn.cpp +++ b/wled00/FX_fcn.cpp @@ -1459,7 +1459,8 @@ void WS2812FX::blendSegment(const Segment &topSegment) const { const int maxX = std::min(x + topSegment.grouping, width); const int maxY = std::min(y + topSegment.grouping, height); while (y < maxY) { - while (x < maxX) setMirroredPixel(x++, y, c_a, opacity); + int _x = x; + while (_x < maxX) setMirroredPixel(_x++, y, c_a, opacity); y++; } }