From c6f994c51f29770be493ac3aaf76f71fccc4269f Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 8 Jan 2015 18:51:13 +0100 Subject: add new pointers to screen and background make the old ones (Pfondjeu and Pecran) deprecated but keep them so the code continues working properly. Signed-off-by: Olivier Gayot --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 7c5d19d..64ad4d2 100644 --- a/main.c +++ b/main.c @@ -24,7 +24,7 @@ int main (int argc, char *argv[]) fprintf(stderr, "Erreur lors de l'ouverture de la SDL : %s", SDL_GetError()); exit (EXIT_FAILURE); } - surfaces.Pecran = SDL_SetVideoMode (XWIN,YWIN,32, SDL_HWSURFACE|SDL_DOUBLEBUF); + surfaces.screen = surfaces.Pecran = SDL_SetVideoMode (XWIN,YWIN,32, SDL_HWSURFACE|SDL_DOUBLEBUF); if (surfaces.Pecran == NULL) { fprintf(stderr,"Impossible de charger la mémoire vidéo : %s", SDL_GetError()); -- cgit v1.2.3