From 54f9d4ca6dbfbd69fc7469c4c10561c5ff36abeb Mon Sep 17 00:00:00 2001 From: Troy <5659019+troyhacks@users.noreply.github.com> Date: Mon, 15 Jul 2024 08:17:00 -0400 Subject: [PATCH] Borders checkbox for @netmindz Netmindz likes the borders. Now a check-box to enable. --- wled00/FX.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/wled00/FX.cpp b/wled00/FX.cpp index 8d523ffc..02f62a2b 100644 --- a/wled00/FX.cpp +++ b/wled00/FX.cpp @@ -8520,14 +8520,21 @@ uint16_t mode_GEQLASER(void) { SEGMENT.drawLine(x,rows-1,x,rows-heights[i]-1,ledColorTemp); // front fill } - if (heights[i] > rows-horizon) { + if (!SEGMENT.check1 && heights[i] > rows-horizon) { if (SEGMENT.intensity == 0) ledColorTemp = color_fade(ledColor,32,true); // match side fill if we're in blackout mode - SEGMENT.drawLine(linex,rows-heights[i]-1,pPos,rows-heights[i]-1,ledColorTemp); // top line to simulate hidden top fill + SEGMENT.drawLine(linex,rows-heights[i]-1,linex+(cols/NUM_BANDS)-1,rows-heights[i]-1,ledColorTemp); // top line to simulate hidden top fill } + if (SEGMENT.check1) { + SEGMENT.drawLine(linex, rows-1,linex,rows-heights[i]-1,ledColor); // left side line + SEGMENT.drawLine(linex+(cols/16)-1,rows-1,linex+(cols/16)-1,rows-heights[i]-1,ledColor); // right side line + SEGMENT.drawLine(linex, rows-heights[i]-2,linex+(cols/16)-1,rows-heights[i]-2,ledColor); // top line + SEGMENT.drawLine(linex, rows-1,linex+(cols/16)-1,rows-1,ledColor); // bottom line + } + } }