XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

Xbox 360 Reading Current Resolution

Last post 14/12/2007 8:07 by Josh Jones. 2 replies.
  • 14/12/2007 7:06

    Xbox 360 Reading Current Resolution

    I've seen stuff in older posts but I was hoping there was some new methods in XNA 2.0 that let us read the current resolution on the Xbox.

    Right now i'm getting a list of supported resolutions and picking the last one on the list (which is 1080p).  I did have an issue getting 1080p going with the analog component cables.  Said invalid DirectX 9 video device or something.  The VGA cables have no trouble in 1080p.

    I also noticed when I created the GraphicsManager the prefered width/height was 800x600 even though i'm running in 1080p.  Very interesting.

    So to sum up, how can I get the user's current Xbox resolution and use that to initialize my game with?
  • 14/12/2007 7:43 In reply to

    Re: Xbox 360 Reading Current Resolution

    Answer
    Reply Quote

    graphics = new GraphicsDeviceManager(this);
    graphics.PreferredBackBufferWidth = GraphicsAdapter.Adapters[0].CurrentDisplayMode.Width;
    graphics.PreferredBackBufferHeight = GraphicsAdapter.Adapters[0].CurrentDisplayMode.Height;

  • 14/12/2007 8:07 In reply to

    Re: Xbox 360 Reading Current Resolution

    Awesome!  I knew it was something obvious.

    Thanks again!
Page 1 of 1 (3 items) Previous Next