Function sdl2_sys::SDL_SetWindowSize [] [src]

pub unsafe extern "C" fn SDL_SetWindowSize(
    window: *mut SDL_Window,
    w: c_int,
    h: c_int
)

\brief Set the size of a window's client area.

\param window The window to resize. \param w The width of the window, in screen coordinates. Must be >0. \param h The height of the window, in screen coordinates. Must be >0.

\note You can't change the size of a fullscreen window, it automatically matches the size of the display mode.

The window size in screen coordinates may differ from the size in pixels, if the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a platform with high-dpi support (e.g. iOS or OS X). Use SDL_GL_GetDrawableSize() or SDL_GetRendererOutputSize() to get the real client area size in pixels.

\sa SDL_GetWindowSize()