summaryrefslogtreecommitdiff
path: root/src/main/main.c
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2025-05-18 11:46:26 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2025-05-18 11:46:26 +0200
commit24339d371c2194405dc151e8de0c319d976a78ba (patch)
tree8d2f2e2f18f81e89f275322de4267d50c352a11c /src/main/main.c
parent77a456b65b3d21213db9a5c88076f511b753e07c (diff)
downloadtris-24339d371c2194405dc151e8de0c319d976a78ba.tar.gz
tris-24339d371c2194405dc151e8de0c319d976a78ba.zip
Move the process of rendering line from game to engine
Diffstat (limited to 'src/main/main.c')
-rw-r--r--src/main/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/main.c b/src/main/main.c
index e102a28..4780e76 100644
--- a/src/main/main.c
+++ b/src/main/main.c
@@ -37,7 +37,9 @@ draw_frame()
int main(void) {
engine_init(WIDTH, HEIGHT);
ui_set_title("Tris Game");
- engine_loop(draw_frame);
+ draw_frame();
+
+ engine_loop();
return EXIT_SUCCESS;
}