tags:

views:

1782

answers:

3

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

+9  A: 

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

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

Adrian Grigore
Yeah, Google is a real mystery to most people.
Bombe
@Bombe: What does it hurt to have the information here? IIRC, Jeff and Joel want to turn this place into a one-stop information house about all things programming.
jasonh
@jansonh: A noble cause, but we should start with more interesting topics before turning to replicating readily available manuals on the web.
Adrian Grigore
in fact, I googled (now) and found this. thanks. :]
Yossarian
yep.. first result on google. good job i landed on stack and not msdn.
Kyle
I revoke my comment. It's incredible to see how often important SO has become in google's search results.
Adrian Grigore
+1  A: 

I also just Google'd this and found here. Many thanks.

Kurtis
A: 

First Google result.

wth
Welcome to stack overflow! Posting answers that amount to "look on google" are generally frowned upon as this site is intended to be a sort of Wikipedia of programming issues. I hope you'll continue to be a good emember of this community :)
RCIX