Skip to content

fix SDL2 Fullscreen switching. (fast mode switch) - #2729

Merged
nkast merged 1 commit into
mainfrom
fixSDL2FullscreenSwitching
Sep 27, 2026
Merged

nkast merged 1 commit into
mainfrom
fixSDL2FullscreenSwitching

Conversation

@nkast

@nkast nkast commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

fast switching , when the preferred resolution is the CurrentDisplayMode.

e.g.
graphics.PreferredBackBufferWidth = GraphicsDevice.Adapter.CurrentDisplayMode.Width;
graphics.PreferredBackBufferHeight = GraphicsDevice.Adapter.CurrentDisplayMode.Height;
graphics.IsFullScreen = true;
graphics.ApplyChanges();

fast switching , when the requested resolution is the
CurrentDisplayMode,

e.g.
graphics.PreferredBackBufferWidth =
GraphicsDevice.Adapter.CurrentDisplayMode.Width;
graphics.PreferredBackBufferHeight =
GraphicsDevice.Adapter.CurrentDisplayMode.Height;
graphics.IsFullScreen = true;
graphics.ApplyChanges();
@nkast
nkast force-pushed the fixSDL2FullscreenSwitching branch from fbc4155 to 9684d27 Compare September 27, 2026 11:49
@nkast
nkast merged commit d10b869 into main Sep 27, 2026
1 check passed
@nkast
nkast deleted the fixSDL2FullscreenSwitching branch September 27, 2026 11:52
nkast added a commit that referenced this pull request Sep 27, 2026
fast switching , when the preferred resolution is the
CurrentDisplayMode.

e.g.
graphics.PreferredBackBufferWidth =
GraphicsDevice.Adapter.CurrentDisplayMode.Width;
graphics.PreferredBackBufferHeight =
GraphicsDevice.Adapter.CurrentDisplayMode.Height;
graphics.IsFullScreen = true;
graphics.ApplyChanges();
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.

1 participant