From 27af3259942ebdbf06bb045d8aba4ebb1c5d10e9 Mon Sep 17 00:00:00 2001 From: Lyanis Souidi Date: Sat, 3 Dec 2022 23:16:25 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20du=20chemin=20d'acc=C3=A8s=20des?= =?UTF-8?q?=20images?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Correction de l'extension des fichiers d'image de carte (.png -> .jpg) --- src/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game.c b/src/game.c index f86cef3..a46caf8 100644 --- a/src/game.c +++ b/src/game.c @@ -69,7 +69,7 @@ int game(int colonnes, int lignes) { i=0; for (l = 0; l < lignes; l++) { for (c = 0; c < colonnes; c++) { - sprintf(file, "img/cards/%dx%d/%d.png", colonnes, lignes, tab[i]); + sprintf(file, "img/cards/%dx%d/%d.jpg", colonnes, lignes, tab[i]); cards[l][c] = create_card( GAME_MARGIN_RIGHT + (((WINDOW_WIDTH - (GAME_MARGIN_RIGHT + GAME_MARGIN_LEFT)) - (case_max_dimensions * colonnes)) / 2) + (c * case_max_dimensions), GAME_MARGIN_TOP + (((WINDOW_HEIGHT - (GAME_MARGIN_TOP + GAME_MARGIN_BOTTOM)) - (case_max_dimensions * lignes)) / 2) + (l * case_max_dimensions),