diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-11 08:20:14 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-11 08:20:14 +0000 |
commit | 2eae5c2914731091ee25929250a701e5e2c2c724 (patch) | |
tree | 741591fa62195ad612c75dcc9e2ddbc85e5878c2 /src | |
parent | 222f8a034707e8f57dc0e4795462af610a911d75 (diff) | |
download | mana-2eae5c2914731091ee25929250a701e5e2c2c724.tar.gz mana-2eae5c2914731091ee25929250a701e5e2c2c724.tar.bz2 mana-2eae5c2914731091ee25929250a701e5e2c2c724.tar.xz mana-2eae5c2914731091ee25929250a701e5e2c2c724.zip |
Adding icon to the window
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 95b1727b..8a32f043 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -38,6 +38,7 @@ #include <libxml/parser.h> #include <SDL.h> #include <SDL_opengl.h> +#include <SDL_image.h> #ifdef __USE_UNIX98 #include <sys/stat.h> @@ -213,6 +214,8 @@ void init_engine() screenW = 800; screenH = 600; bitDepth = 16; + + SDL_WM_SetIcon(IMG_Load("data/icons/tmw-icon.png"), NULL); screen = SDL_SetVideoMode(screenW, screenH, bitDepth, displayFlags); if (screen == NULL) { |