mirror of https://github.com/PCSX2/pcsx2.git
GSWindow: Remove force disable full screen hack now the GS Window doesn't suck
This commit is contained in:
parent
c86dd7397d
commit
9989daec94
|
@ -307,19 +307,9 @@ namespace Implementations
|
||||||
|
|
||||||
void Sys_Suspend()
|
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();
|
CoreThread.Suspend();
|
||||||
|
|
||||||
gsframe = wxGetApp().GetGsFramePtr(); // just in case suspend removes this window
|
GSFrame* gsframe = wxGetApp().GetGsFramePtr();
|
||||||
if (gsframe && !wxGetApp().HasGUI() && g_Conf->GSWindow.CloseOnEsc)
|
if (gsframe && !wxGetApp().HasGUI() && g_Conf->GSWindow.CloseOnEsc)
|
||||||
{
|
{
|
||||||
// When we run with --nogui, PCSX2 only knows to exit when the gs window closes.
|
// When we run with --nogui, PCSX2 only knows to exit when the gs window closes.
|
||||||
|
|
Loading…
Reference in New Issue