From 11d4d230d0900ac3ffb40d5ceb911a5042e16379 Mon Sep 17 00:00:00 2001 From: orfao Date: Mon, 11 Dec 2023 10:49:53 +0100 Subject: [PATCH] =?UTF-8?q?optimisation=20m=C3=A9moire=20timer.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- make_test/main.c | 2 -- make_test/timer.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/make_test/main.c b/make_test/main.c index c81a258..8eba9ce 100644 --- a/make_test/main.c +++ b/make_test/main.c @@ -48,8 +48,6 @@ int main(void){ InitialiserGraphique(); CreerFenetre(0, 0, 1200, 1000); ChoisirTitreFenetre("Snake By Moncef & Marco"); - menus(); return EXIT_SUCCESS; - } \ No newline at end of file diff --git a/make_test/timer.c b/make_test/timer.c index be18820..69e8aed 100644 --- a/make_test/timer.c +++ b/make_test/timer.c @@ -11,7 +11,7 @@ void initialiser_timer(int *min, int *sec) { } int afficher_seconde(int sec){ - char timer[50]; + char timer[4]; int x = 230 ,y = 850; if(sec<=9){ ChoisirCouleurDessin(CouleurParComposante(0, 0, 0)); @@ -31,7 +31,7 @@ int afficher_seconde(int sec){ } int afficher_minute(int min){ - char timer[50]; + char timer[4]; int x = 190 ,y = 850; if(min<=9){ ChoisirCouleurDessin(CouleurParComposante(0, 0, 0));