fix renderering to correctly determine width and height dynamically

This commit is contained in:
2025-02-03 14:12:19 +01:00
parent df93300798
commit 4a2fb359fb

View File

@@ -5,8 +5,8 @@
#include "../game/game.h" #include "../game/game.h"
#define SCREEN_WIDTH 256 #define SCREEN_WIDTH (COLUMNS * 25)
#define SCREEN_HEIGHT (SCREEN_WIDTH * 2) #define SCREEN_HEIGHT (SCREEN_WIDTH / COLUMNS * ROWS)
#define BLOCK_WIDTH (SCREEN_WIDTH / COLUMNS) #define BLOCK_WIDTH (SCREEN_WIDTH / COLUMNS)
#define BLOCK_HEIGHT (SCREEN_HEIGHT / ROWS) #define BLOCK_HEIGHT (SCREEN_HEIGHT / ROWS)