(GraphicsAdapter DefaultAdapter CurrentDisplayMode) is not returning true width and height.

So in XNA if you call GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width or GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height it will return the current desktop resolution. However in MonoGame it returns these values (800, 600).

Anyone knows why and how to fix it?

It isn’t implemented on any platforms I have worked with.

It’s on the Windows DirectX and OpenGL platform.

Use this.GraphicsDevice.Viewport instead.

1 Like

That doesn’t work. because what viewport will return the current windows size of the application or game. What GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width will return is the current desktop width, which in my case is 1920.