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

Changed SDL fullscreen calls order #8034

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Nebulaxin
Copy link
Contributor

Small fix based on #8030

Because of the order of SDL calls, when going fullscreen and GraphicsDeviceManager.HardwareModeSwitch is true, fullscreen mode is enabled before resizing

And because of that resolution is set to window size, not PreferredBackBufferWidth/Height, and only then resolution is set to PreferredBackBufferWidth/Height

In this fix window will switch to fullscreen mode only after resize

vizerian pushed a commit to vizerian/MonoGame that referenced this pull request Feb 23, 2024
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.

None yet

1 participant