mirror of https://github.com/encounter/SDL.git
Fixed bug 3577 - Can't set minimal size (message box appears instead) if maximal size wasn't declared (i.e. unlimited)
This commit is contained in:
parent
3f83fce7c1
commit
da30992d47
|
@ -1969,7 +1969,8 @@ SDL_SetWindowMinimumSize(SDL_Window * window, int min_w, int min_h)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (min_w >= window->max_w || min_h >= window->max_h) {
|
if ((window->max_w && min_w >= window->max_w) ||
|
||||||
|
(window->max_h && min_h >= window->max_h)) {
|
||||||
SDL_SetError("SDL_SetWindowMinimumSize(): Tried to set minimum size larger than maximum size");
|
SDL_SetError("SDL_SetWindowMinimumSize(): Tried to set minimum size larger than maximum size");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue