fix: you need to take the square root of the size, not divide by two,

This commit is contained in:
2025-01-27 16:44:02 +01:00
parent b3ad7e1f54
commit 92676d6474
2 changed files with 8 additions and 5 deletions

View File

@@ -21,8 +21,8 @@ enum {
TETROMINO_ROTATED_270 = 24,
};
#define SHAPE_WIDTH ((uint8_t)(sizeof(Shape) * 8 / 2))
#define SHAPE_HEIGHT ((uint8_t)(sizeof(Shape) * 8 / 2))
#define SHAPE_WIDTH 4
#define SHAPE_HEIGHT 4
#define TETROMINO_COUNT 7