Thought for the Dazed

I've had to give up that Distance Learning course as I was having trouble seeing the teacher.

Flickr
www.flickr.com
RobMiles' items Go to RobMiles' photostream
Twitter
C# Yellow Book

Search entire site
« The Misleading World of Atari Box Art | Main | Windows Phone 7 Games »
Wednesday
Aug252010

Windows Phone Screen Stealing Status Bar

image

I got some very useful comments on my post about how to make XNA games use the full screen of the Windows Phone. The thing that I didn’t make clear was that in an XNA game you will lose screen space even if the bar is not displaying anything. The best way to view the effect of this is to go into the settings of the phone (or emulator) and change the Background to light (Phone>Settings>theme).  Above shows what you get. The status bar is drawn white and the game screen area is scaled down by that lovely hardware in the phone itself. As you can see, your game is losing out on screen space.

If you want to make full use of all the screen you just need to add this line into the constructor for your game:

graphics.IsFullScreen = true;

image

Much better.

Reader Comments (2)

Rob, I think I'm suffering from Deja'vu. Didn't you already mention this?...
August 25, 2010 | Unregistered CommenterSimon (Darkside) Jackson
I've already mentioned it, but I was worried that people might think that the status bar just overlays the game screen. It doesn't, instead it takes away screen space and your game display will get scaled down as a result. That's the point I really wanted to make.
August 25, 2010 | Registered CommenterRob

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Hyperlinks will be created for URLs automatically.