diff --git a/icone.bmp b/icone.bmp new file mode 100644 index 0000000..af69c98 Binary files /dev/null and b/icone.bmp differ diff --git a/main.c b/main.c index 07a308d..3f589e7 100644 --- a/main.c +++ b/main.c @@ -15,7 +15,8 @@ SDL_Surface* init() { if (fenetre == NULL) { die("Erreur lors de la crĂ©ation de la fenĂȘtre."); } - SDL_WM_SetCaption("Lew", "lew.png"); + SDL_WM_SetCaption("Lew", NULL); + SDL_WM_SetIcon(SDL_LoadBMP("icone.bmp"), NULL); SDL_FillRect(fenetre, NULL, SDL_MapRGB(fenetre->format, 0, 0, 0)); SDL_Flip(fenetre);