Skip to content

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

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

nkast merged 1 commit into
mainfrom
fixSDL2FullscreenSwitching2

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 preferred 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 merged commit 69aea78 into main Sep 27, 2026
1 check passed
@nkast nkast changed the title ix SDL2 Fullscreen switching. (fast mode switch)- #2729 fix SDL2 Fullscreen switching. (fast mode switch)- #2729 Sep 27, 2026
@nkast
nkast deleted the fixSDL2FullscreenSwitching2 branch September 27, 2026 11:58
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