summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-03-22 15:37:50 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-03-22 15:37:50 +0000
commitc1e091c761ca5f673831d4547db80b1ba1c59399 (patch)
tree849188ee65aaa8a483ec10dd8596b6c924760a42 /src/main.cpp
parentcacb143040c018a24aed00c3ce1f513b75ec7f99 (diff)
downloadmana-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.cpp4
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);