From 29cdf17f5b48dfda57345a15e891b0abb01f0e08 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 6 Sep 2021 20:27:08 +0200 Subject: [PATCH] Fixed definition of WHITE, RED and YELLOW variables (for #21) --- src/PHL.c | 4 +++- src/PHL.h | 6 ++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/PHL.c b/src/PHL.c index 8db7e32..e9a4c4e 100644 --- a/src/PHL.c +++ b/src/PHL.c @@ -4,6 +4,8 @@ #include "qda.h" #include "game.h" +int WHITE, RED, YELLOW; + void PHL_Init() { PHL_GraphicsInit(); @@ -80,4 +82,4 @@ void PHL_DrawTextBoldCentered(char* txt, int dx, int dy, int col) PHL_DrawTextBold(txt, dx - (stringW / 2), dy, col); } -} \ No newline at end of file +} diff --git a/src/PHL.h b/src/PHL.h index c6e514d..d23330e 100644 --- a/src/PHL.h +++ b/src/PHL.h @@ -46,12 +46,10 @@ typedef struct { void PHL_Init(); void PHL_Deinit(); -int WHITE, - RED, - YELLOW; +extern int WHITE, RED, YELLOW; PHL_Surface PHL_LoadQDA(char* fname); void PHL_DrawTextBold(char* txt, int dx, int dy, int col); void PHL_DrawTextBoldCentered(char* txt, int dx, int dy, int col); -#endif \ No newline at end of file +#endif