summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 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());