NinjaBeetle
NinjaBeetle

Reputation: 85

monogame screen resolution is incorrect

Monogame, or XNA really, is reporting the wrong screen resolution on my Surface Pro 3.

Using GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width and Height returns dimensions of 800 x 600, which is incorrect. So, I cannot set up my game size correctly.

I've been using this code without problem on an Acer V5 and can set the game resolution to a size I expect. This is because the GraphicsAdapter reports the correct screen size.

Whether using it as is, or docking the tablet with an external monitor, returns exactly the same resolution. What error is causing this?

Upvotes: 2

Views: 1279

Answers (1)

jgallant
jgallant

Reputation: 11273

This used to be a bug in Monogame, and was fixed.

If you are not building from the latest source code, it is possible that you still have the bug in your monogame dll.

See: https://github.com/danzel/MonoGame/commit/0c36642129d89a12b30bcfc7d13256739d5483af

Upvotes: 2

Related Questions