Just some random driveby code cleanup

This commit is contained in:
Henrik Rydgård committed 2023-08-10 10:28:25 +02:00
1 parent 4e77c63b97
commit 96506544b7
8 files changed
+23 -43

No files matched your search

+2 -5
View File
@@ -285,11 +285,8 @@ namespace MainWindow
System_PostUIMessage("window minimized", "false");
}
int width = 0, height = 0;
RECT rc;
GetClientRect(hwndMain, &rc);
width = rc.right - rc.left;
height = rc.bottom - rc.top;
int width, height;
W32Util::GetWindowRes(hwndMain, &width, &height);
// Moves the internal display window to match the inner size of the main window.
MoveWindow(hwndDisplay, 0, 0, width, height, TRUE);