Search code examples
xnafullscreen

XNA: get screen's width and height


how do i get the width and height of the entire screen in XNA?


Solution

  • This seems to be it (just googled for "xna screen width height" myself):

    GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height
    GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width