Re: App icon sometimes not appearing on window titlebar
Stephen Anthony <sa666666 <at> gmail.com>
2008-04-01 21:05:09 GMT
On March 30, 2008 3:56:06 pm Ronald Lamprecht wrote:
> Stephen Anthony wrote:
> > On March 30, 2008 3:10:17 pm Ken Rogoway wrote:
> >> I ran into something similar. You need to make sure you call
> >> SDL_WM_SetIcon() before you call SDL_SetVideoMode().
> > But would that cause it to work sometimes, and not other times?
> > Also, is there any harm in calling the method more than once per
> > application invocation (basically, if you destroy and recreate the
> > window, it is OK to call the function again)?
> I did run into the same problems on the "Enigma" project
> (http://www.nongnu.org/enigma). Every OS had need of another SDL
> handling and even the different Windows versions did prove to be
> incompatible (XP is an exception, 95,98, 2000, Vista are the same)
OK, thanks for the code. I just looked at it, and it seems the only
difference is that you call SDL_WM_SetIcon() at different times;
sometimes before SDL_SetVideoMode() and sometimes after.
However, I just noticed something else; the way I do it (icon before
video mode) only causes a problem when using the normal XP theme. When
I use the old Win98/2000 theme, the icon works fine!
Does anyone know what could be causing this?