Hi all,
I’ve just used the MonoGame 3.4 for my game and met a problem with viewport size in Windows Phone 8 project. When I ran on my Lumia 525 (running Windows 10 Mobile, build 10.0.10586.36), the viewport size was 734x480, while the expected value is 800x480. I also checked the PresentationParameters.BackBufferWidth and Window.ClientBounds, they’re the same.
I simply drawn a 800x480 texture on the screen, and it seemed to be stretched outside the screen. Then I tried to set PrefferredBackBuffer size to 800x480 but no help.
Code :
protected override void LoadContent()
{
background = Content.Load<Texture2D>("background");
}
protected override void Draw(GameTime gameTime)
{
GraphicsDevice.Clear(Color.CornflowerBlue);
spriteBatch.Begin();
spriteBatch.Draw(background, Vector2.Zero, Color.White);
spriteBatch.End();
base.Draw(gameTime);
}
Screenshots :
Windows Phone 8 project
Windows Phone 8.1 project
I read many dicussions about fullscreen issues but no solution.
Hope anyone could help.