Skip to content

Commit

Permalink
Fix goofy window resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
ducdat0507 committed Jan 8, 2024
1 parent 2006107 commit 138fc43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/Scripts/UI/BorderlessWindow.cs
Expand Up @@ -237,6 +237,7 @@ static IntPtr WindowProc(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam)
{
IsMaximized = false;
SetWindowPos(hWnd, 0, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_FRAMECHANGED);
ResizeWindowDelta(0, -7);
}
OnWindowUpdate.Invoke();
}
Expand Down

0 comments on commit 138fc43

Please sign in to comment.