summaryrefslogtreecommitdiff
path: root/blits.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 /blits.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 'blits.c')
-rw-r--r--blits.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/blits.c b/blits.c
index 0bb6b61..113fd53 100644
--- a/blits.c
+++ b/blits.c
@@ -289,13 +289,3 @@ void Fblitterpmcible (SURFACES *surfaces,POSITIONS *positions, const struct char
SDL_BlitSurface (surfaces->Ppmcible,NULL,surfaces->Pecran,&positions->Vpositionpmcible);
TTF_CloseFont (police);
}
-
-void Fblitterfond(SURFACES* surfaces)
-{
- SDL_Rect position;
- position.x=0;
- position.y=0;
- surfaces->Pfondjeu=IMG_Load("images/jeu/textures/background.jpg");
- SDL_BlitSurface(surfaces->Pfondjeu,NULL,surfaces->Pecran,&position);
- SDL_Flip(surfaces->Pecran);
-}