[−][src]Function sdl2_sys::SDL_SetWindowDisplayMode
pub unsafe extern "C" fn SDL_SetWindowDisplayMode(
window: *mut SDL_Window,
mode: *const SDL_DisplayMode
) -> c_int
\brief Set the display mode used when a fullscreen window is visible.
By default the window's dimensions and the desktop format and refresh rate are used.
\param window The window for which the display mode should be set. \param mode The mode to use, or NULL for the default mode.
\return 0 on success, or -1 if setting the display mode failed.
\sa SDL_GetWindowDisplayMode() \sa SDL_SetWindowFullscreen()