summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-08 18:52:14 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-08 18:52:14 +0100
commitd75f0dfb7a040ff88c39e01fa639ff74300f11a2 (patch)
tree7ac20d9c89778c353e355731dd74bde59646aca1 /main.c
parentc6f994c51f29770be493ac3aaf76f71fccc4269f (diff)
blit the background only once (no need for a weird function)
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
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