mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 05:55:46 +01:00
fix renderering to correctly determine width and height dynamically
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
|
||||
#include "../game/game.h"
|
||||
|
||||
#define SCREEN_WIDTH 256
|
||||
#define SCREEN_HEIGHT (SCREEN_WIDTH * 2)
|
||||
#define SCREEN_WIDTH (COLUMNS * 25)
|
||||
#define SCREEN_HEIGHT (SCREEN_WIDTH / COLUMNS * ROWS)
|
||||
#define BLOCK_WIDTH (SCREEN_WIDTH / COLUMNS)
|
||||
#define BLOCK_HEIGHT (SCREEN_HEIGHT / ROWS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user