Windows 8 simulator resolution help

Hi,

when I start a game with the simulator rotated to portrait mode, I get…

GraphicsDevice.PresentationParameters.BackBuffer W/H = (1920, 1200)
GraphicsDevice.Viewport = (0,0, 1920,1200)
MyGame.instance.Window.ClientBounds = (1200 , 1920)
MyGame.instance.Window.CurrentOrientation = PortraitDown

shouldn’t all values be 1200,1920 ?

(I’ve been able to reproduce this problem in a Surface RT with 8.1, so I don’t think it’s a simulator problem)

Thanks!

edit: the values seem to be always valid after the device is rotated

I use this workaround in my Game() constructor.

#if NETFX_CORE
            graphics.PreferredBackBufferWidth = Window.ClientBounds.Width;
            graphics.PreferredBackBufferHeight = Window.ClientBounds.Height;
#endif

thanks, it works ! :slight_smile: