(3.8 release) Can't change window size.

Brand new project:

    public Game1()
    {
        _graphics = new GraphicsDeviceManager(this);
        _graphics.PreferredBackBufferWidth = 1600;
        _graphics.PreferredBackBufferHeight = 900;
        Content.RootDirectory = "Content";
        IsMouseVisible = true;
    }

The game window remains the default size. This worked in previous versions, is something different in 3.8?

2 Likes

You can do it on Initialize, just call Apply afterwards.

2 Likes

That worked, thank you!

Hi, ran into the same issue and couldn’t really find any issues on this on github. Is this a bug in 3.8?

It is, it’s already been fixed and once 3.8.1 is out it will come with it.

2 Likes

Great, thanks harry.

Hey folks… I had set the preferred dimensions in the constructor, then called ApplyChanges() in the initialize method.

To be clear on the workaround- you set the dimensions AND call ApplyChanges() in the Initialize method.

3 Likes