0

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?

Community
  • 1
  • 1
ksandarusi
  • 150
  • 4
  • 16

1 Answers1

3

Your are only setting the height, set the width too

graphics.PreferredBackBufferWidth = 300;

graphics.PreferredBackBufferHeight = 500;

Blau
  • 5,742
  • 1
  • 18
  • 27
  • Wow what happened was it was meant to be width for the second value but and so the height kept reverting to its default value (500). – ksandarusi Feb 20 '12 at 16:20