Pike v8.0 release 1738

Method SDL.toggle_fullscreen()


Method toggle_fullscreen

int toggle_fullscreen(void|SDL.Surface screen)

Description

Toggles the application between windowed and fullscreen mode, if supported. X11 is the only target currently supported.

Parameter screen

The framebuffer surface, as returned by SDL.set_video_mode().

Returns

Returns 1 on success or 0 on failure.