From 3088717fca8571c3078ed0d35c11849cabe0799e Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Mon, 6 Feb 2023 19:37:26 -0800 Subject: fixed --- block.c | 2 +- block.h | 2 +- config.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/block.c b/block.c index 2f4d36c..08f8494 100644 --- a/block.c +++ b/block.c @@ -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; diff --git a/block.h b/block.h index 1f12a72..808fd88 100644 --- a/block.h +++ b/block.h @@ -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 diff --git a/config.h b/config.h index 05c0cc7..a454042 100644 --- a/config.h +++ b/config.h @@ -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 -- cgit v1.3.1