From f0dade5856002a65db7b08fc8e334d0dcbedc608 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Sat, 29 Apr 2023 15:51:25 +0200 Subject: [PATCH] Uneven matrix fix. --- wled00/FX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/FX.cpp b/wled00/FX.cpp index 34a16da0..f3bbb957 100644 --- a/wled00/FX.cpp +++ b/wled00/FX.cpp @@ -7507,7 +7507,7 @@ uint16_t mode_2Doctopus() { const uint16_t rows = SEGMENT.virtualHeight(); const uint8_t C_X = cols / 2; const uint8_t C_Y = rows / 2; - const uint8_t mapp = 255 / cols; + const uint8_t mapp = 255 / MAX(cols,rows); typedef struct { uint8_t angle;