Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for fullscreen + never grab mouse + resize window #140

Merged
merged 6 commits into from
Sep 4, 2022

Conversation

madebr
Copy link
Collaborator

@madebr madebr commented Sep 1, 2022

  • Switch to full screen (and back to windowed mode) when pressing ALT+ENTER
  • Never grab the mouse (see discussion in discord)

The only issue I have with the current implementation is that it does not preserve aspect ratio.
I tried the approach of this SO question, but the behavior is weird when going full screen and back. It also breaks when going full screen because it can resize the window to dimensions bigger then the screen size.

Instead, we probably just need to modify the gl renderer to draw its thing in the correct aspect ratio centrally and add black bars left and right. ==> This is what I ended up adding in this pr.

Fixes #72

@madebr madebr marked this pull request as draft September 1, 2022 23:10
@madebr madebr marked this pull request as ready for review September 1, 2022 23:24
@madebr madebr changed the title Add support for fullscreen + never grab mouse Add support for fullscreen + never grab mouse + resize window Sep 2, 2022
@dethrace-labs
Copy link
Owner

nice, will try it out over the weekend!

@dethrace-labs dethrace-labs merged commit 8a21679 into dethrace-labs:main Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fullscreen
2 participants