Release Type: Official Release
Version: 4.2.0.2188
Platform(s): Windows
Describe the bug
I was trying to get the screen bounds to be able to scale the window based on the Users screen resolution. However the monitor handle is a null pointer when the Graphics API is OpenGL. I have not tested this on Linux but this will be a useful to know since this would be a useful feature for devs.
To Reproduce
Steps to reproduce the behavior:
- Inherit from the Game class
- override
BeginRun()
- add the following code:
protected override void BeginRun()
{
base.BeginRun();
var desktopBounds = GraphicsDevice.Adapter.Outputs[0].DesktopBounds;
}
- place breakpoint after desktop bounds and see broken resolution.
Expected behavior
This should function the same way that the DirectX graphics API does and have the monitor information.
Screenshots

Additional context
Im not sure if its related but you also can not resize the window while using OpenGL but that might need a separate issue.
Release Type: Official Release
Version: 4.2.0.2188
Platform(s): Windows
Describe the bug
I was trying to get the screen bounds to be able to scale the window based on the Users screen resolution. However the monitor handle is a null pointer when the Graphics API is OpenGL. I have not tested this on Linux but this will be a useful to know since this would be a useful feature for devs.
To Reproduce
Steps to reproduce the behavior:
BeginRun()Expected behavior
This should function the same way that the DirectX graphics API does and have the monitor information.
Screenshots

Additional context
Im not sure if its related but you also can not resize the window while using OpenGL but that might need a separate issue.