From 96f5bdd43e12c1c26e65e3a8e8d9ab0b95cd506e Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Thu, 23 Dec 2021 13:37:10 -0800 Subject: Fixed Global Drawer Initialization --- src/graphics/drawer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/graphics/drawer.c') diff --git a/src/graphics/drawer.c b/src/graphics/drawer.c index 742712a..542c04c 100644 --- a/src/graphics/drawer.c +++ b/src/graphics/drawer.c @@ -1,7 +1,8 @@ #include "../graphics/lfb.h" #include "../graphics/drawer.h" -static struct Drawer g_Drawer = {x: 0, y: 0}; +#define GRAPHICS_DRAWER_C +struct Drawer g_Drawer = {.x = 0, .y = 0}; void write_cchar(struct Drawer* d, char s, unsigned int c) { d->x %= GG_MAX_X; -- cgit v1.2.1