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

183 fullscreen support #184

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

183 fullscreen support #184

wants to merge 6 commits into from

Conversation

micheldebree
Copy link
Collaborator

@micheldebree micheldebree commented Apr 6, 2024

Draft for fixing #183

Hardcoded fullscreen

An extra clearing of the screen is done in viewport:End() to eliminate noise in the 'letterboxed' areas. This seems like a hack; I would like to understand why crap is rendered there in the first place.

TODO:

  • Fullscreen toggle with keyboard shortcut
  • Config setting for starting fullscreen
  • Fix overlay, or disable in fullscreen mode
  • Fix mouse support
  • Find out why noise is rendered and maybe eliminate that
  • Upgrade SDL2 version for Windows to 2.0.18 or higher

Adds noise. When this is eliminated, fullscreen toggling can go under a
shortcut key and a config parameter.
@micheldebree micheldebree added the enhancement New feature or request label Apr 6, 2024
@micheldebree micheldebree self-assigned this Apr 6, 2024
@micheldebree micheldebree linked an issue Apr 6, 2024 that may be closed by this pull request
@micheldebree micheldebree marked this pull request as draft April 6, 2024 06:40
@micheldebree micheldebree changed the title Draft: 183 fullscreen support 183 fullscreen support Apr 6, 2024
Copy link
Collaborator

@TheRealLaxity TheRealLaxity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't really a hack, since you're clearing the screen buffer before presenting the render buffer. I wonder if it needs to be done every frame though.

@micheldebree
Copy link
Collaborator Author

This isn't really a hack, since you're clearing the screen buffer before presenting the render buffer. I wonder if it needs to be done every frame though.

The noise looked like it changed on every frame (very quickly anyway). You can have a look if you take out the clearing step.

@micheldebree
Copy link
Collaborator Author

Mouse is not working properly at all in fullscreen :)

@micheldebree
Copy link
Collaborator Author

Mouse is not working properly at all in fullscreen :)

Fixed, but solution needs an SDL2 upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fullscreen Support?
2 participants