diff options
| author | Preston Pan <preston@nullring.xyz> | 2023-02-06 19:37:26 -0800 |
|---|---|---|
| committer | Preston Pan <preston@nullring.xyz> | 2023-02-06 19:37:26 -0800 |
| commit | 3088717fca8571c3078ed0d35c11849cabe0799e (patch) | |
| tree | 8b1f3b55730f4c42797ddea20f56819bd19276d2 | |
| parent | 4cb7cbd3734205bb923c65290e73fe47c85f86a4 (diff) | |
fixed
| -rw-r--r-- | block.c | 2 | ||||
| -rw-r--r-- | block.h | 2 | ||||
| -rw-r--r-- | config.h | 4 |
3 files changed, 4 insertions, 4 deletions
@@ -2,7 +2,7 @@ #include "block.h" #include "config.h" -block_t *init_block(int type) +block_t *init_block(int type, int width) { block_t *block = malloc(sizeof(block_t)); block->type = type; @@ -23,5 +23,5 @@ typedef struct { int y; } block_t; -block_t *init_block(int type); +block_t *init_block(int type, int width); #endif @@ -1,5 +1,5 @@ #ifndef CONFIG_H #define CONFIG_H -int width = 20; -int height = 40; +int g_width = 20; +int g_height = 40; #endif |
