Full screen resize fix (#1359)

* Fixed WM_WINDOWPOSCHANGED not handling window resize when leving full screen mode.

* Fix whitespaces.
This commit is contained in:
Teemu Korhonen
2021-04-06 21:38:34 +03:00
committed by GitHub
parent 5686b189b3
commit 6ab499a64e

View File

@@ -857,7 +857,7 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
config_save();
}
if (!(pos->flags & SWP_NOSIZE)) {
if (!(pos->flags & SWP_NOSIZE) || !user_resize) {
plat_vidapi_enable(0);
MoveWindow(hwndSBAR, 0, rect.bottom - sbar_height, sbar_height, rect.right, TRUE);