Using MoveWindow instead of SetWindowPos to move the window now, which actually works.

This commit is contained in:
OBattler
2021-09-18 00:01:39 +02:00
parent 5bc8b4bb07
commit 065b8cc0c3
2 changed files with 5 additions and 5 deletions

View File

@@ -1089,12 +1089,13 @@ plat_setfullscreen(int on)
}
/* Main Window. */
if (vid_resize >= 2)
MoveWindow(hwndMain, window_x, window_y, window_w, window_h, TRUE);
if (hide_status_bar)
ResizeWindowByClientArea(hwndMain, temp_x, temp_y);
else
ResizeWindowByClientArea(hwndMain, temp_x, temp_y + sbar_height);
SetWindowPos(hwndMain, HWND_TOP, window_x, window_y, 0, 0, SWP_NOSIZE);
}
/* Render window. */