[SDL] WM_SetIcon

Sam Lantinga slouken at devolution.com
Wed Jun 13 00:23:03 PDT 2007


> 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


More information about the SDL mailing list