ksandarusi
ksandarusi

Reputation: 150

XNA Changing window size not working

I tried changing the size of the window according to this:

How do I set the window / screen size in xna?

however, it doesn't seem to have any affect.

    graphics = new GraphicsDeviceManager(this);
    graphics.PreferredBackBufferHeight = 300;
    graphics.PreferredBackBufferHeight = 500;

I put that in the constructor. Any ideas?

Upvotes: 0

Views: 3091

Answers (1)

Blau
Blau

Reputation: 5762

Your are only setting the height, set the width too

graphics.PreferredBackBufferWidth = 300;

graphics.PreferredBackBufferHeight = 500;

Upvotes: 3

Related Questions