Skip to content

Commit

Permalink
Fix centering
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaProductions committed Jan 6, 2024
1 parent efa2d3a commit 5eead86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RectifyStart/RectifyStart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,

GetWindowRect(hwnd, &rc);

int xPos = (GetSystemMetrics(SM_CXSCREEN) - rc.right) / 2;
int yPos = (GetSystemMetrics(SM_CYSCREEN) - rc.bottom) / 2;
int xPos = (GetSystemMetrics(SM_CXSCREEN) - (rc.right - rc.left)) / 2;
int yPos = (GetSystemMetrics(SM_CYSCREEN) - (rc.bottom - rc.top)) / 2;

SetWindowPos(hwnd, 0, xPos, yPos, 0, 0, SWP_NOZORDER | SWP_NOSIZE);

Expand Down

0 comments on commit 5eead86

Please sign in to comment.