2010-lew/main.c
2010-09-26 01:19:57 +02:00

18 lines
386 B
C

#include <stdlib.h>
#include <stdio.h>
#include <SDL/SDL.h>
int main(int argc, char** argv) {
if (SDL_Init(SDL_INIT_VIDEO) != 0) {
fprintf(stderr, "Erreur à l'initialisation de SDL :");
fprintf(stderr, " %s", SDL_GetError());
exit(EXIT_FAILURE);
}
SDL_SetVideoMode(640, 480, 24, SDL_HWSURFACE);
SDL_WM_SetCaption("Lew", "lew.png");
SDL_Quit();
return EXIT_SUCCESS;
}