Reputation: 150
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
Reputation: 5762
Your are only setting the height, set the width too
graphics.PreferredBackBufferWidth = 300;
graphics.PreferredBackBufferHeight = 500;
Upvotes: 3