From d75f0dfb7a040ff88c39e01fa639ff74300f11a2 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 8 Jan 2015 18:52:14 +0100 Subject: blit the background only once (no need for a weird function) Signed-off-by: Olivier Gayot --- main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 64ad4d2..9fb8150 100644 --- a/main.c +++ b/main.c @@ -243,6 +243,9 @@ int Fchargerimages (SURFACES *surfaces) for (i = 0;i < 5;i++) surfaces->Tennemi[i] = surfaces->Pgobelin; + LOAD_IMAGE(background, "images/jeu/textures/background.jpg"); + surfaces->Pfondjeu = surfaces->background; + #undef LOAD_IMAGE //définition de la transparence alpha dans les surfaces -- cgit v1.2.3