Removing titlebar in windowed mode

Is it possible to remove the title bar, when SDL is initialised in
windowed mode? If so, how can I do this?

Thank you.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!Am Samstag, 31. Januar 2004 07:27 schrieb Akinwale Ariwodola:

Is it possible to remove the title bar, when SDL is initialised in
windowed mode? If so, how can I do this?

Yes you can. A short look at SDL_video.h shows:
#define SDL_NOFRAME 0x00000020 /* No window caption or edge frame */

Just pass SDL_NOFRAME to SDL_SetVideoMode().

regards
Matthias


Matthias Bach | GPG/PGP-Key-ID: 0xACA73EC9
www.marix-world.de | On Keyserver: www.keyserver.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFAG5RtlnJmS6ynPskRAntYAJ9xh7a6QGj5jtY0rvSZm+2dlErJiwCgh5g9
IOVbFat+Y82UYRN1V2cq7zQ=
=h7EB
-----END PGP SIGNATURE-----

Try passing SDL_NOFRAME as a flag to SDL_SetVideoMode().
http://sdldoc.csn.ul.ie/sdlsetvideomode.php

Bernhard

Akinwale Ariwodola wrote:> Is it possible to remove the title bar, when SDL is initialised in

windowed mode? If so, how can I do this?

Thank you.


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