summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2023-02-06 19:37:26 -0800
committerPreston Pan <preston@nullring.xyz>2023-02-06 19:37:26 -0800
commit3088717fca8571c3078ed0d35c11849cabe0799e (patch)
tree8b1f3b55730f4c42797ddea20f56819bd19276d2
parent4cb7cbd3734205bb923c65290e73fe47c85f86a4 (diff)
fixed
-rw-r--r--block.c2
-rw-r--r--block.h2
-rw-r--r--config.h4
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