summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStarla Insigna <starla4444@gmail.com>2013-08-28 19:28:45 -0400
committerStarla Insigna <starla4444@gmail.com>2013-08-28 19:28:45 -0400
commit887056394ce576cc2fa919f6074dda0943ff195d (patch)
treefb91dbea5af3bbfc8d8467a69c03cb8020345c8e
parent0fb6c56cd42e0558717a264442436af02441abfb (diff)
downloadmazeoflife-887056394ce576cc2fa919f6074dda0943ff195d.tar.gz
mazeoflife-887056394ce576cc2fa919f6074dda0943ff195d.tar.bz2
mazeoflife-887056394ce576cc2fa919f6074dda0943ff195d.zip
Added game icon
-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 {