WM_SetIcon

I think my mail did not send properly; so i re-send it. In case of
double-post, excuse me!

Hello,

When one tries to do SDL_WM_SetIcon after a SDL_SetVideoMode, it does
not work. I know that. But, when you do this:

Pseudo code:
SDL_WM_SetIcon(“someicon.bmp”);
SDL_SetVideoMode()…
SDL_WM_SetIcon(“someothericon.bmp”);

It takes someothericon.bmp.

Is this intended?

I ask this because my game/engine has to be extremely flexible and i’d
like to want to make the WM Icon customizable. I can choose to have a
default bitmap location with a default name, so someone can change
that picture and replace it with their own. However, i’d rather let my
users specify where the bitmap is as well and then link it as an ICON.

Thanks for any advice given,

Regards,–
Stefan Hendriks

http://www.fundynamic.nl

When one tries to do SDL_WM_SetIcon after a SDL_SetVideoMode, it does
not work. I know that. But, when you do this:

Pseudo code:
SDL_WM_SetIcon(“someicon.bmp”);
SDL_SetVideoMode()…
SDL_WM_SetIcon(“someothericon.bmp”);

It takes someothericon.bmp.

Is this intended?

It works on some platforms and not on others. I don’t recommend it.
Can you find out if the user specified a different icon before the
video mode is initialized?

See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment