Skip to content

Commit 00d1fcc

Browse files
authored
bugfixes: grouping and missing libArchive (wled#4718)
1 parent caeda96 commit 00d1fcc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

usermods/user_fx/library.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"name": "user_fx"
3-
}
2+
"name": "user_fx",
3+
"build": { "libArchive": false }
4+
}

wled00/FX_fcn.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,8 @@ void WS2812FX::blendSegment(const Segment &topSegment) const {
14591459
const int maxX = std::min(x + topSegment.grouping, width);
14601460
const int maxY = std::min(y + topSegment.grouping, height);
14611461
while (y < maxY) {
1462-
while (x < maxX) setMirroredPixel(x++, y, c_a, opacity);
1462+
int _x = x;
1463+
while (_x < maxX) setMirroredPixel(_x++, y, c_a, opacity);
14631464
y++;
14641465
}
14651466
}

0 commit comments

Comments
 (0)