summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
-rw-r--r--structures.h8
2 files changed, 7 insertions, 3 deletions
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());
diff --git a/structures.h b/structures.h
index fa7e5c0..f3cb306 100644
--- a/structures.h
+++ b/structures.h
@@ -6,7 +6,8 @@
typedef struct surfaces SURFACES;
struct surfaces
{
- SDL_Surface *Pecran;
+ SDL_Surface *Pecran; /* deprecated */
+ SDL_Surface *screen;
SDL_Surface *Pgobelin;
SDL_Surface *red_warrior_gobelin;
@@ -36,7 +37,10 @@ struct surfaces
SDL_Surface *Ptextechoixmenu;
SDL_Surface *Pcurseurennemis;
SDL_Surface *Pcurseurallies;
- SDL_Surface *Pfondjeu;
+
+ SDL_Surface *Pfondjeu; /* deprecated */
+ SDL_Surface *background;
+
SDL_Surface *Pnbdegats;
SDL_Surface *Pcadrecible;
SDL_Surface *Pnomcible;