Uneven matrix fix.

This commit is contained in:
Blaz Kristan 2023-04-29 15:51:25 +02:00
parent 2119d08543
commit f0dade5856

View File

@ -7507,7 +7507,7 @@ uint16_t mode_2Doctopus() {
const uint16_t rows = SEGMENT.virtualHeight(); const uint16_t rows = SEGMENT.virtualHeight();
const uint8_t C_X = cols / 2; const uint8_t C_X = cols / 2;
const uint8_t C_Y = rows / 2; const uint8_t C_Y = rows / 2;
const uint8_t mapp = 255 / cols; const uint8_t mapp = 255 / MAX(cols,rows);
typedef struct { typedef struct {
uint8_t angle; uint8_t angle;