mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 04:15:30 +00:00
Restore window minimum and maximum size if it is recreated
Fixes https://github.com/libsdl-org/SDL/issues/8805 (cherry picked from commit fb2d7ed83efbeebeb537ea8c17694585c05ce8e3)
This commit is contained in:
parent
38d11e5cc6
commit
f641d91f67
|
@ -2019,6 +2019,14 @@ int SDL_RecreateWindow(SDL_Window *window, Uint32 flags)
|
||||||
_this->SetWindowIcon(_this, window, window->icon);
|
_this->SetWindowIcon(_this, window, window->icon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_this->SetWindowMinimumSize && (window->min_w || window->min_h)) {
|
||||||
|
_this->SetWindowMinimumSize(_this, window);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_this->SetWindowMaximumSize && (window->max_w || window->max_h)) {
|
||||||
|
_this->SetWindowMaximumSize(_this, window);
|
||||||
|
}
|
||||||
|
|
||||||
if (window->hit_test) {
|
if (window->hit_test) {
|
||||||
_this->SetWindowHitTest(window, SDL_TRUE);
|
_this->SetWindowHitTest(window, SDL_TRUE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue