[][src]Function fermium::video::SDL_GetClosestDisplayMode

pub unsafe extern "C" fn SDL_GetClosestDisplayMode(
    displayIndex: c_int,
    mode: *const SDL_DisplayMode,
    closest: *mut SDL_DisplayMode
) -> *mut SDL_DisplayMode

Gets the closest display mode to the mode requested.

Returns: Either the closest pointer, or null on failure. Call SDL_GetError for more.