Tao.Sdl SDK Documentation

Sdl.SDL_WM_ToggleFullScreen Method 

Toggle fullscreen mode without changing the contents of the screen.

[Visual Basic]
Public Shared Function SDL_WM_ToggleFullScreen( _
   ByVal surface As IntPtr _
) As Integer
[C#]
public static int SDL_WM_ToggleFullScreen(
   IntPtr surface
);

Parameters

surface

Return Value

Returns 0 on failure or 1 on success.

Remarks

If the display surface does not require locking before accessing the pixel information, then the memory pointers will not change.

If this function was able to toggle fullscreen mode (change from running in a window to fullscreen, or vice-versa), it will return 1. If it is not implemented, or fails, it returns 0.

The next call to SDL_SetVideoMode() will set the mode fullscreen attribute based on the flags parameter - if SDL_FULLSCREEN is not set, then the display will be windowed by default where supported.

This is currently only implemented in the X11 video driver.

Binds to C-function call in SDL_video.h:

int SDL_WM_ToggleFullScreen(SDL_Surface *surface);

See Also

Sdl Class | Tao.Sdl Namespace