summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--mazeoflife.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/mazeoflife.cpp b/mazeoflife.cpp index a020f6c..fda6f74 100644 --- a/mazeoflife.cpp +++ b/mazeoflife.cpp
@@ -37,6 +37,9 @@ int main(int argc, char *argv[])
37 return 1; 37 return 1;
38 } 38 }
39 39
40 SDL_Surface* icon = SDL_LoadBMP("resources/icon.bmp");
41 SDL_SetWindowIcon(window, icon);
42
40 SDL_Renderer* renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC); 43 SDL_Renderer* renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
41 if (renderer == NULL) 44 if (renderer == NULL)
42 { 45 {