summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2025-05-21 23:36:42 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2025-05-21 23:36:42 +0200
commit0e2ae89e187e868803514b4b75df10f5b147831f (patch)
treefea5e29b911892c6b9a692e23366299893d25afd
parent7288bdd42360109f26a684431fa286ea265d07a4 (diff)
downloadtris-0e2ae89e187e868803514b4b75df10f5b147831f.tar.gz
tris-0e2ae89e187e868803514b4b75df10f5b147831f.zip
Move a declaration
-rw-r--r--src/main/game/game.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/game/game.c b/src/main/game/game.c
index 7579c50..19a93a0 100644
--- a/src/main/game/game.c
+++ b/src/main/game/game.c
@@ -25,6 +25,15 @@
#include "cell.h"
#include "../engine/ui/ui.h"
+static Log *log = NULL;
+
+static void
+init_log(void)
+{
+ if (log != NULL) return;
+ log = log_create("Game");
+}
+
float xmin, xmax, ymin, ymax;
float box_size;
int field_matrix[3][3];
@@ -43,15 +52,6 @@ int moves = 0;
static void game_draw_field(TrisGame *game, float box_size, float x, float y);
-static Log *log = NULL;
-
-static void
-init_log(void)
-{
- if (log != NULL) return;
- log = log_create("Game");
-}
-
static void
draw_sign(float x, float y)
{