Set the size of a window's client area.
int SDL_SetWindowSize(SDL_Window *window, int w, int h);
window | the window to change |
w | the width of the window, must be > 0 |
h | the height of the window, must be > 0 |
Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
This only affects the size of the window when not in fullscreen mode. To change the fullscreen mode of a window, use SDL_SetWindowFullscreenMode()
This function is available since SDL 3.0.0.