Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4K full screen toggle #226

Open
Twoshrubs opened this issue Nov 24, 2019 · 3 comments
Open

4K full screen toggle #226

Twoshrubs opened this issue Nov 24, 2019 · 3 comments
Labels
Milestone

Comments

@Twoshrubs
Copy link

Hello,

I'm not sure if this as issue or just me..

When using 'SadConsole.Settings.ToggleFullScreen();' with a desktop set as 3840x2160 the screen goes blank for a few seconds and then the window will be minimized onto the taskbar.

After that there is nothing you can do to get the screen back up.

If I alter the desktop resolution to a smaller resolution (1920x1200) full screen toggle works fine.
Using the window maximize button works fine also at the high resolution.

Kind regards,

Twoshrubs

@ghost
Copy link

ghost commented Nov 26, 2019

@Twoshrubs Hi! Thank you for filing this issue. I'm not sure why or how that would happen. I haven't hard coded any sort of resolution limits or anything. SadConsole just gets the resize information from MonoGame when the resize event happens. I don't have a 4k monitor to try and test and debug this, so I would need you or someone else to do that.

This is the code that goes to full screen. As you can see I'm querying MonoGame for how big the screen can be and then setting that size.

After the screen is toggled, the MonoGame game event code path will trigger Global.ResetRendering().

Perhaps you can try the free version of https://marketplace.visualstudio.com/items?itemName=RevDeBug.RecordReplayforNET-RevDeBug or something? Or we can arrange for us to use the Visual Studio Live Share feature. This way I can easily and securely connect to your machine and watch and control the debugging.

@ghost ghost added the bug label Nov 26, 2019
@Twoshrubs
Copy link
Author

Hello :)
Yes, I will give the recorder a try this weekend, I'm a contract automation engineer.. so I'm away all week commissioning. If we get no joy with the recorder, I have no issues with doing a shared screen session one weekend.

@Twoshrubs
Copy link
Author

Twoshrubs commented Nov 26, 2019

@SadConsole Hello, I just remembered my lad had simular issues with Spiral Knights at the weekend, and could only get it working in Window mode. I had a google and it seems it uses XNA/Monogame.

Then came across this.. http://community.monogame.net/t/fullscreen-game-not-rendering-to-proper-size-for-resolutions-besides-1920-x-1080/8255 It looks like a Monogame issue?

@Thraka Thraka added this to the v10 milestone Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants