Set the maximum size of a window's client area.
Defined in <SDL3/SDL_video.h>
window | the window to change |
max_w | the maximum width of the window, or 0 for no limit |
max_h | the maximum height of the window, or 0 for no limit |
Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
This function is available since SDL 3.0.0.