Skip to content

Commit

Permalink
Fixed definition of WHITE, RED and YELLOW variables (for #21)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Sep 6, 2021
1 parent ab43945 commit 29cdf17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/PHL.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include "qda.h"
#include "game.h"

int WHITE, RED, YELLOW;

void PHL_Init()
{
PHL_GraphicsInit();
Expand Down Expand Up @@ -80,4 +82,4 @@ void PHL_DrawTextBoldCentered(char* txt, int dx, int dy, int col)

PHL_DrawTextBold(txt, dx - (stringW / 2), dy, col);
}
}
}
6 changes: 2 additions & 4 deletions src/PHL.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
#endif

0 comments on commit 29cdf17

Please sign in to comment.