-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Window positon tweaks and fullscreen in OpenGL (#333)
* Fixed window pos not restored with OpenGL * Fixed fullscreen in OpenGL (again) Fixes going full screen on the next monitor when the game was on the second half of the screen. * Set Fullscreen state only when call succeeds Also some logging so we hopefully know why it failed. * Consistent behavior for getting monitor SDL always gets the monitor at the middle of the window. Now DXGI does too. Also only resets the position if there is no pixel of the window on any screen. * also get current monitor on resize (DirectX) * Correct typo Co-authored-by: Kenix3 <[email protected]> --------- Co-authored-by: Kenix3 <[email protected]>
- Loading branch information
Showing
2 changed files
with
54 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters