diff options
| -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 |
