diff options
author | Simon Howard | 2006-12-16 00:58:12 +0000 |
---|---|---|
committer | Simon Howard | 2006-12-16 00:58:12 +0000 |
commit | 2aa16d0ff38c02c96272c9af050a4d7e1715c3fb (patch) | |
tree | 23769028398155ef30e86ad7e2358bea9b18db58 /setup/mainmenu.c | |
parent | f13ccd913eb63dc85eb475c9c370d8cfebea1bbe (diff) | |
download | chocolate-doom-2aa16d0ff38c02c96272c9af050a4d7e1715c3fb.tar.gz chocolate-doom-2aa16d0ff38c02c96272c9af050a4d7e1715c3fb.tar.bz2 chocolate-doom-2aa16d0ff38c02c96272c9af050a4d7e1715c3fb.zip |
Add icon for setup tool.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 777
Diffstat (limited to 'setup/mainmenu.c')
-rw-r--r-- | setup/mainmenu.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/setup/mainmenu.c b/setup/mainmenu.c index 08b7d6d8..cb645463 100644 --- a/setup/mainmenu.c +++ b/setup/mainmenu.c @@ -28,6 +28,8 @@ #include "configfile.h" #include "m_argv.h" +#include "chocolate_setup_icon.c" + #include "compatibility.h" #include "display.h" #include "keyboard.h" @@ -140,6 +142,28 @@ static void InitConfig(void) M_LoadDefaults(); } +// +// Application icon +// + +static void SetIcon(void) +{ + SDL_Surface *surface; + + surface = SDL_CreateRGBSurfaceFrom(chocolate_setup_data, + chocolate_setup_w, + chocolate_setup_h, + 24, + chocolate_setup_w * 3, + 0xff << 0, + 0xff << 8, + 0xff << 16, + 0); + + SDL_WM_SetIcon(surface, NULL); + SDL_FreeSurface(surface); +} + // // Initialise and run the textscreen GUI. // @@ -153,6 +177,7 @@ static void RunGUI(void) } TXT_SetDesktopTitle(PACKAGE_NAME " Setup ver " PACKAGE_VERSION); + SetIcon(); MainMenu(); |