Skip to content

Instantly share code, notes, and snippets.

@kennethlarsen
Created September 4, 2012 11:18
Show Gist options
  • Save kennethlarsen/3620335 to your computer and use it in GitHub Desktop.
Save kennethlarsen/3620335 to your computer and use it in GitHub Desktop.
Define windows size, XNA c#
protected override void Initialize()
{
// TODO: Add your initialization logic here
graphics.PreferredBackBufferHeight = 500;
graphics.PreferredBackBufferWidth = 500;
graphics.IsFullScreen = false;
graphics.ApplyChanges();
Window.Title = "Title here";
base.Initialize();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment