SetCaption and SetIcon

Hi there!

I’ve two simple (?) questions:

// Set Icon! (before SetVideoMode!)
SDL_WM_SetIcon(SDL_LoadBMP(“data/sheeplw.bmp”), NULL);

did not work.
yes, the image is there, and there are no errormessages on

if(SDL_LoadBMP(“data/sheeplw.bmp”) == 0)
fprintf(stderr, “Couldn’t load it!”);

First I tried
IMG_Load(“data/sheeplw.gif”)
but as expected there’s no difference in using a gif or a bmp…

Doesn’t it work with Win?

Then I don’t understand the second parameter of
void SDL_WM_SetCaption(const char *title, const char *icon);

Where is *icon printed? Not at all in Win32?

thx in Advance
Stiefel

Hi!
Just try to put the SDL_WM_* functions after SetVideoMode … if you don’t
have a window, where’d you like to see an icon? …
St0fF.

At 19:44 17.03.2002 +0100, you wrote:>Hi there!

I’ve two simple (?) questions:

// Set Icon! (before SetVideoMode!)
SDL_WM_SetIcon(SDL_LoadBMP(“data/sheeplw.bmp”), NULL);

did not work.
yes, the image is there, and there are no errormessages on

if(SDL_LoadBMP(“data/sheeplw.bmp”) == 0)
fprintf(stderr, “Couldn’t load it!”);

First I tried
IMG_Load(“data/sheeplw.gif”)
but as expected there’s no difference in using a gif or a bmp…

Doesn’t it work with Win?

Then I don’t understand the second parameter of
void SDL_WM_SetCaption(const char *title, const char *icon);

Where is *icon printed? Not at all in Win32?

thx in Advance
Stiefel


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Just try to put the SDL_WM_* functions after SetVideoMode … if you don’t
have a window, where’d you like to see an icon? …
St0fF.

That also doesn’t work!
In SDL-Doc for SDL_WM_SetIcon() you can read:
"This function must be called before the first call to SDL_SetVideoMode."
I guess the reason is, that you need this picture when creating the window
and maybe you cannot change it later!

BTW: SetCaption works good, but i just don’t know what happens with the
second parameter!
Yes, the first is shown as Title in the titlebar on top of the window. But
the second???
Also, you can ALWAYS use this and change the caption, not only before
SetVideoMode.> >I’ve two simple (?) questions:

// Set Icon! (before SetVideoMode!)
SDL_WM_SetIcon(SDL_LoadBMP(“data/sheeplw.bmp”), NULL);

did not work.
yes, the image is there, and there are no errormessages on

if(SDL_LoadBMP(“data/sheeplw.bmp”) == 0)
fprintf(stderr, “Couldn’t load it!”);

First I tried
IMG_Load(“data/sheeplw.gif”)
but as expected there’s no difference in using a gif or a bmp…

Doesn’t it work with Win?

Then I don’t understand the second parameter of
void SDL_WM_SetCaption(const char *title, const char *icon);

Where is *icon printed? Not at all in Win32?

thx in Advance
Stiefel


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

BTW: SetCaption works good, but i just don’t know what happens with
the second parameter! Yes, the first is shown as Title in the titlebar
on top of the window. But the second??? Also, you can ALWAYS use this
and change the caption, not only before SetVideoMode.

The second parameter is used when iconifying (minimizing) the window on
platforms that use it. It’s pretty rare nowadays. Just put a more terse
version in there.

The Build Engine uses:

“BUILD Engine by Ken Silverman” and “BUILD”, respectively.

–ryan.