[SOLVED] Changing screen resolution in cross platform game doesn't work in VS 2019

Hello,

In a new created cross platform game, using the templates from Nuget, the following lines in the constructor do nothing

graphics.PreferredBackBufferHeight = 1080;
graphics.PreferredBackBufferWidth = 1920;

I’m using Windows 10, Nvidia and a HD monitor.

This work perfectly under VS2017.

Thanks.

Try applaying changes?

graphics.ApplyChanges();

You’ve most likely fallen victim to this bug, the workaround for now until a patch is released is in there https://github.com/MonoGame/MonoGame/issues/7298

Thanks for replying, I would never think to put it under Initialize().

Btw, creating the project under VS2017, works after that under VS2019 too. But maybe it is already known.

Hi @vintosert, Welcome to the Community!

Is this solved?

Happy Coding!

Yes, thank you.

1 Like