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
« Why do I get an “Object reference not set to an instance of an object” error when I run my program? | Main | Why does the Emulator not work on my machine when I use XNA? »
Thursday
Apr012010

Why does my XNA Game Not Fill the Screen?

By default an XNA game is overlaid by the phone title bar. This takes up a row at the very top, so draws at 0,0 will not be properly visible. You can request the graphics device in your game to let you use the whole screen by setting its IsFullScreen property to true. The best place to do this is in the constructor for the game class:

public Game1()
{
    graphics = new GraphicsDeviceManager(this);

    // Make the game full screen
    graphics.IsFullScreen = true;

... rest of constructor here

References (1)

References allow you to track sources for this article, as well as articles that were written in response to this article.
  • Response
    Rob Miles - Windows Phone FAQ - Why does my XNA Game Not Fill the Screen?

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Hyperlinks will be created for URLs automatically.