Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore window geometry correctly, even in high DPI
The coordinates returned by GetWindowPlacement() must be passed to SetWindowPlacement() and not SetWindowPos() as the former functions account correctly for non-standard DPI, while the latter one does not. Using SetWindowPlacement() also allows to remove the checks for the coordinates being valid because the function already checks for this and will always position the window inside the visible area anyhow. Fixes #370.
- Loading branch information