summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2023-02-11 23:08:00 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2023-02-11 23:12:20 +0100
commitd2c1f3116eb05fd0ecb8cba3972b5afdad4589d9 (patch)
tree901234132c7cdcdb13de63fa29ca1b846696ad4b /src/main.c
parent6dd1018929950ab6a8f1648b6b834a2b6768ad21 (diff)
Don't define globals in header, use extern statements instead
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index d2ef531..346c130 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2,6 +2,19 @@
#define shift_args(argc, argv) *argv++
+SDL_Surface *scr;
+SDL_Surface *surf_number[9];
+SDL_Surface *bmb_surf;
+SDL_Surface *hidden_surf;
+SDL_Surface *selection_surf;
+SDL_Surface *flag_surf;
+SDL_Surface *wrong_flag;
+
+SDL_mutex *mutex;
+
+unsigned int discovered;
+unsigned int g_flags;
+
static void reveal_bombs(map_t *map)
{
SDL_Rect rect;