Locking a window to a specified size now also makes it remember the position, closes #1683.

This commit is contained in:
OBattler
2021-09-14 22:17:47 +02:00
parent 3c2ac29c68
commit 07eb764df6
3 changed files with 17 additions and 7 deletions

View File

@@ -1093,6 +1093,9 @@ plat_setfullscreen(int on)
ResizeWindowByClientArea(hwndMain, temp_x, temp_y);
else
ResizeWindowByClientArea(hwndMain, temp_x, temp_y + sbar_height);
if (window_remember)
SetWindowPos(hwndMain, HWND_TOP, window_x, window_y, 0, 0, SWP_NOSIZE);
}
/* Render window. */