We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abf6e95 commit 770723eCopy full SHA for 770723e
wled00/FX_fcn.cpp
@@ -648,9 +648,9 @@ uint16_t Segment::virtualLength() const {
648
#ifndef WLED_DISABLE_2D
649
// maximum length of a mapped 1D segment, used in PS for buffer allocation
650
uint16_t Segment::maxMappingLength() const {
651
- unsigned vW = virtualWidth();
652
- unsigned vH = virtualHeight();
653
- return max(sqrt32_bw(vH*vH + vW*vW), (unsigned)getPinwheelLength(vW, vH)); // use diagonal
+ uint32_t vW = virtualWidth();
+ uint32_t vH = virtualHeight();
+ return max(sqrt32_bw(vH*vH + vW*vW), (uint32_t)getPinwheelLength(vW, vH)); // use diagonal
654
}
655
#endif
656
// pixel is clipped if it falls outside clipping range
0 commit comments