Set the maximum size of a window's client area.
int SDL_SetWindowMaximumSize(SDL_Window *window, int max_w, int max_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.