| Poster | : xer0bot | | Posts | : 1 | | Country | : South Africa | | City | : Johannesburg |
| | | | Posted by xer0bot on 25/07/2012 at 01:41:58
| | http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series2D/Drawing_fullscreen_images.php
Put this code at the end of our LoadContent method, which stores the correct values into thes variables:
screenWidth = device.PresentationParameters.BackBufferWidth;
screenHeight = device.PresentationParameters.BackBufferHeight;
The above doesn't work and produces an error.
The below edit works.
screenWidth = GraphicsDevice.PresentationParameters.BackBufferWidth;
screenHeight = GraphicsDevice.PresentationParameters.BackBufferHeight;
| |
|
|