diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-03-22 15:37:50 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-03-22 15:37:50 +0000 |
commit | c1e091c761ca5f673831d4547db80b1ba1c59399 (patch) | |
tree | 849188ee65aaa8a483ec10dd8596b6c924760a42 /src/main.cpp | |
parent | cacb143040c018a24aed00c3ce1f513b75ec7f99 (diff) | |
download | mana-c1e091c761ca5f673831d4547db80b1ba1c59399.tar.gz mana-c1e091c761ca5f673831d4547db80b1ba1c59399.tar.bz2 mana-c1e091c761ca5f673831d4547db80b1ba1c59399.tar.xz mana-c1e091c761ca5f673831d4547db80b1ba1c59399.zip |
Fixed problems with window icon on Windows as much as possible.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 88a862e0..810dc758 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -257,7 +257,9 @@ void init_engine(const Options &options) } SDL_WM_SetCaption("The Mana World", NULL); - SDL_WM_SetIcon(IMG_Load(TMW_DATADIR "data/icons/tmw.png"), NULL); + SDL_Surface *icon = IMG_Load(TMW_DATADIR "data/icons/tmw-32x32.png"); + SDL_SetAlpha(icon, SDL_SRCALPHA, SDL_ALPHA_OPAQUE); + SDL_WM_SetIcon(icon, NULL); #ifdef USE_OPENGL bool useOpenGL = (config.getValue("opengl", 0) == 1); |