Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Platforms/Game/.SDL2/SDLGameWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -527,12 +527,12 @@ internal void EndScreenDeviceChange(int clientWidth, int clientHeight, bool will
}
else
{
SDL.WINDOW.SetSize(Handle, clientWidth, clientHeight);
SDL.WINDOW.SetFullscreen(Handle, Sdl.Window.State.Fullscreen);
// If going to exclusive full-screen mode, force the window to minimize on focus loss (Windows only)
if (CurrentPlatform.OS == OS.Windows)
SDL.SetHint("SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS", "1" );

SDL.WINDOW.SetSize(Handle, clientWidth, clientHeight);
_width = clientWidth;
_height = clientHeight;
}
Expand Down
Loading