diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-08 18:51:13 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-08 18:51:13 +0100 |
commit | c6f994c51f29770be493ac3aaf76f71fccc4269f (patch) | |
tree | f791d2ba9867eb9752a654aa9a20ec61a66c30e7 /main.c | |
parent | 27163e11f31ef3b0c2bc97a09da5b7671d29f06a (diff) |
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 <duskcoder@gmail.com>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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()); |