I created a fresh MONOGAME app using Visual Studio 2022. Total fresh, from scratch.
This is all I changed:
public Game1()
{
_graphics = new GraphicsDeviceManager(this);
Content.RootDirectory = “Content”;
IsMouseVisible = true;
_graphics.PreferredBackBufferWidth = 2560;
_graphics.PreferredBackBufferHeight = 1440;
Window.IsBorderless = true;
_graphics.IsFullScreen = true;
_graphics.HardwareModeSwitch = true;
_graphics.SynchronizeWithVerticalRetrace = true;
_graphics.ApplyChanges();
}
If you do the above, then run the code it should display a BLUE screen.
Now, take a window and DRAG another window across the blue screen. (your app is still running in Visual Studio)
What I get is the window you are trying to drag caused the monogame to kind of minimize and then it will show up as a white screen and it looks to have crashed.
Any ideas what is going on and more importantly how to fix it. My game is nearly complete and I was adding resolution switching to the game, which I got working well, but as I was testing it looks like monogame does not behave very well.
Thanks! Steve