Uneven matrix fix.
This commit is contained in:
parent
2119d08543
commit
f0dade5856
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user