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 --- blits.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'blits.c') 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); -} -- cgit v1.2.3