From f23df9dfbc5bdc4bbc01d3a49df94a027a37f17f Mon Sep 17 00:00:00 2001 From: Troy <5659019+troyhacks@users.noreply.github.com> Date: Sat, 17 Aug 2024 08:28:08 -0400 Subject: [PATCH] Revert functionality change to M12_pArc Left the new code in for reference --- wled00/FX_fcn.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wled00/FX_fcn.cpp b/wled00/FX_fcn.cpp index b5e84039..9092e3f7 100644 --- a/wled00/FX_fcn.cpp +++ b/wled00/FX_fcn.cpp @@ -986,8 +986,10 @@ void IRAM_ATTR_YN __attribute__((hot)) Segment::setPixelColor(int i, uint32_t co float rad = 0.0f; for (unsigned count = 0; count < numSteps; count++) { // may want to try float version as well (with or without antialiasing) - int x = max(0, min(vW-1, (int)roundf(sinf(rad) * radius))); - int y = max(0, min(vH-1, (int)roundf(cosf(rad) * radius))); + // int x = max(0, min(vW-1, (int)roundf(sinf(rad) * radius))); + // int y = max(0, min(vH-1, (int)roundf(cosf(rad) * radius))); + int x = roundf(sinf(rad) * radius); + int y = roundf(cosf(rad) * radius); setPixelColorXY(x, y, col); if(useSymmetry) setPixelColorXY(y, x, col);// WLEDMM rad += step;