diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2009-06-22 14:53:38 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2009-06-22 14:53:38 -0400 |
commit | 131531314f87fbd18d52122356dc8f44884b7bac (patch) | |
tree | 07c1028713f5b2477ef7e5aa03720c363a134b4b | |
parent | 49900856bece81481a56888b7bbce45bf746c422 (diff) | |
download | mazeoflife-131531314f87fbd18d52122356dc8f44884b7bac.tar.gz mazeoflife-131531314f87fbd18d52122356dc8f44884b7bac.tar.bz2 mazeoflife-131531314f87fbd18d52122356dc8f44884b7bac.zip |
Added icon
-rw-r--r-- | mazeoflife.cpp | 4 | ||||
-rw-r--r-- | resources.h | 1 |
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 | ||
12 | DEFIMAGE(icon) | ||
12 | DEFIMAGE(title) | 13 | DEFIMAGE(title) |
13 | DEFIMAGE(pointer) | 14 | DEFIMAGE(pointer) |
14 | DEFIMAGE(htp1) | 15 | DEFIMAGE(htp1) |