diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-08 18:52:14 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-08 18:52:14 +0100 |
commit | d75f0dfb7a040ff88c39e01fa639ff74300f11a2 (patch) | |
tree | 7ac20d9c89778c353e355731dd74bde59646aca1 /blits.c | |
parent | c6f994c51f29770be493ac3aaf76f71fccc4269f (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.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -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); -} |