You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified this issue is not present in the develop branch
I have searched open and closed issues to ensure it has not already been reported.
MonoGame Version
MonoGame 3.8.1.303
Which MonoGame platform are you using?
MonoGame Windows Desktop Application (mgwindowsdx)
Operating System
Windows
Description
On the DesktopGL platform, it's possible to access the game window during UnloadContent. This makes it possible to save the window size and position for example. The window is only disposed during the Platform.Dispose:
Prerequisites
develop
branchMonoGame Version
MonoGame 3.8.1.303
Which MonoGame platform are you using?
MonoGame Windows Desktop Application (mgwindowsdx)
Operating System
Windows
Description
On the DesktopGL platform, it's possible to access the game window during
UnloadContent
. This makes it possible to save the window size and position for example. The window is only disposed during the Platform.Dispose:MonoGame/MonoGame.Framework/Platform/SDL/SDLGamePlatform.cs
Lines 329 to 339 in a91dcc7
On the WindowsDX platform, the Windows is disposed earlier in Platform.Exit:
MonoGame/MonoGame.Framework/Platform/Windows/WinFormsGamePlatform.cs
Lines 71 to 77 in a91dcc7
Steps to Reproduce
Access the game window during
UnloadContent
.Minimal Example Repo
No response
Expected Behavior
The game window shouldn't be disposed before
UnloadContent
is done.Resulting Behavior
The game window position and size can't be accessed.
Files
No response
The text was updated successfully, but these errors were encountered: