mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
wayland: Don't clamp the max window size when unbounded
This commit is contained in:
@@ -191,8 +191,8 @@ static void SetMinMaxDimensions(SDL_Window *window)
|
|||||||
} else if (window->flags & SDL_WINDOW_RESIZABLE) {
|
} else if (window->flags & SDL_WINDOW_RESIZABLE) {
|
||||||
min_width = SDL_max(window->min_w, wind->system_min_required_width);
|
min_width = SDL_max(window->min_w, wind->system_min_required_width);
|
||||||
min_height = SDL_max(window->min_h, wind->system_min_required_height);
|
min_height = SDL_max(window->min_h, wind->system_min_required_height);
|
||||||
max_width = SDL_max(window->max_w, wind->system_min_required_width);
|
max_width = window->max_w ? SDL_max(window->max_w, wind->system_min_required_width) : 0;
|
||||||
max_height = SDL_max(window->max_h, wind->system_min_required_height);
|
max_height = window->max_h ? SDL_max(window->max_h, wind->system_min_required_height) : 0;
|
||||||
} else {
|
} else {
|
||||||
min_width = wind->wl_window_width;
|
min_width = wind->wl_window_width;
|
||||||
min_height = wind->wl_window_height;
|
min_height = wind->wl_window_height;
|
||||||
|
Reference in New Issue
Block a user