SDL_SetVideoMode flags

Hello, I’m coding a project and would like to know, which are the flags, which a
user is allowed to pass to the SetVideoMode routine. The documentation for the
function says, everything goes. The documentation for the Surface structure
says, only ANYFORMAT, DOUBLEBUF, FULLSCREEN, OPENGL, OPENGLBLIT, & RESIZABLE.
Which one is the truth? Thank you!

Hi,

The documentation for SDL_SetVideoMode() is quite clear;
SDL_SetVideoMode() is only valid with the listed flags.

The surfaces returned by SDL_SetVideoMode() and SDL_CreateRGBSurface()
are NOT equivalent in their semantics; the surface returned by
SDL_SetVideoMode() is freed automatically when the library is closed,
whereas surfaces created using SDL_CreateRGBSurface() must be released
manually.

Eddy

Mihail Ivanchev wrote:> Hello, I’m coding a project and would like to know, which are the flags, which a

user is allowed to pass to the SetVideoMode routine. The documentation for the
function says, everything goes. The documentation for the Surface structure
says, only ANYFORMAT, DOUBLEBUF, FULLSCREEN, OPENGL, OPENGLBLIT, & RESIZABLE.
Which one is the truth? Thank you!


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org