GSWindow: Remove force disable full screen hack now the GS Window doesn't suck

This commit is contained in:
refractionpcsx2 2022-05-05 22:01:58 +01:00
parent c86dd7397d
commit 9989daec94
1 changed files with 1 additions and 11 deletions

View File

@ -307,19 +307,9 @@ namespace Implementations
void Sys_Suspend()
{
GSFrame* gsframe = wxGetApp().GetGsFramePtr();
if (gsframe && gsframe->IsShown() && gsframe->IsFullScreen())
{
// On some cases, probably due to driver bugs, if we don't exit fullscreen then
// the content stays on screen. Try to prevent that by first exiting fullscreen,
// but don't update the internal PCSX2 state/config, and PCSX2 will restore
// fullscreen correctly when emulation resumes according to its state/config.
gsframe->ShowFullScreen(false, false);
}
CoreThread.Suspend();
gsframe = wxGetApp().GetGsFramePtr(); // just in case suspend removes this window
GSFrame* gsframe = wxGetApp().GetGsFramePtr();
if (gsframe && !wxGetApp().HasGUI() && g_Conf->GSWindow.CloseOnEsc)
{
// When we run with --nogui, PCSX2 only knows to exit when the gs window closes.