summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2009-06-22 14:53:38 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2009-06-22 14:53:38 -0400
commit131531314f87fbd18d52122356dc8f44884b7bac (patch)
tree07c1028713f5b2477ef7e5aa03720c363a134b4b
parent49900856bece81481a56888b7bbce45bf746c422 (diff)
downloadmazeoflife-131531314f87fbd18d52122356dc8f44884b7bac.tar.gz
mazeoflife-131531314f87fbd18d52122356dc8f44884b7bac.tar.bz2
mazeoflife-131531314f87fbd18d52122356dc8f44884b7bac.zip
Added icon
-rw-r--r--mazeoflife.cpp4
-rw-r--r--resources.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/mazeoflife.cpp b/mazeoflife.cpp index 4ec9250..ba5faa9 100644 --- a/mazeoflife.cpp +++ b/mazeoflife.cpp
@@ -18,6 +18,10 @@ int main(int argc, char *argv[])
18 18
19 SDL_WM_SetCaption("Maze Of Life", NULL); 19 SDL_WM_SetCaption("Maze Of Life", NULL);
20 20
21 SDL_Surface* icon;
22 LOADIMAGE(icon,icon)
23 SDL_WM_SetIcon(icon, NULL);
24
21 /* 25 /*
22 * Initialize the display in a 640x480 8-bit palettized mode, 26 * Initialize the display in a 640x480 8-bit palettized mode,
23 * requesting a software surface 27 * requesting a software surface
diff --git a/resources.h b/resources.h index ced40b0..dd18ffe 100644 --- a/resources.h +++ b/resources.h
@@ -9,6 +9,7 @@
9#define DEFIMAGE(title) extern int* _binary_ ## title ## _bmp_start; extern int* _binary_ ## title ## _bmp_size; 9#define DEFIMAGE(title) extern int* _binary_ ## title ## _bmp_start; extern int* _binary_ ## title ## _bmp_size;
10#endif 10#endif
11 11
12DEFIMAGE(icon)
12DEFIMAGE(title) 13DEFIMAGE(title)
13DEFIMAGE(pointer) 14DEFIMAGE(pointer)
14DEFIMAGE(htp1) 15DEFIMAGE(htp1)