I have a Windows MonoGame project that normally runs full screen. I have an editor piece that I want to run not in full screen and at a smaller screen resolution than normal. I can successfully switch from full screen but I can’t get the screen resolution to change. Below is what I’m trying to do:
this.graphics.IsFullScreen = false;
this.graphics.PreferredBackBufferWidth = 1280;
this.graphics.PreferredBackBufferHeight = 720;
this.IsMouseVisible = true;
this.graphics.ApplyChanges();
Is there something else I need to do for my screen resolution change to take?
Changing the resolution like this seems to work if I’m doing it on the game’s startup but not mid-game.