mirror of https://github.com/PCSX2/pcsx2.git
don't minimize GS window along with main window.
previously the GS window (rendering window) also gets minimized with the Main window (GUI) whenever it gets minimized. many users didn't like this behavior, hence make it so that GS window doesn't get minimized along with the main one. The parent window pointer parameter is no longer needed, since the parent parameter at WX Frame has been replaced with Null which doesn't force minimize it due to no parent relationship.
This commit is contained in:
parent
8ebe03a89d
commit
b5aceceef2
|
@ -927,7 +927,7 @@ void Pcsx2App::OpenGsPanel()
|
||||||
GSFrame* gsFrame = GetGsFramePtr();
|
GSFrame* gsFrame = GetGsFramePtr();
|
||||||
if( gsFrame == NULL )
|
if( gsFrame == NULL )
|
||||||
{
|
{
|
||||||
gsFrame = new GSFrame( GetMainFramePtr(), GetAppName() );
|
gsFrame = new GSFrame(GetAppName() );
|
||||||
m_id_GsFrame = gsFrame->GetId();
|
m_id_GsFrame = gsFrame->GetId();
|
||||||
|
|
||||||
switch( wxGetApp().Overrides.GsWindowMode )
|
switch( wxGetApp().Overrides.GsWindowMode )
|
||||||
|
|
|
@ -401,8 +401,8 @@ void GSPanel::OnLeftDclick(wxMouseEvent& evt)
|
||||||
static const uint TitleBarUpdateMs = 333;
|
static const uint TitleBarUpdateMs = 333;
|
||||||
|
|
||||||
|
|
||||||
GSFrame::GSFrame(wxWindow* parent, const wxString& title)
|
GSFrame::GSFrame( const wxString& title)
|
||||||
: wxFrame(parent, wxID_ANY, title, g_Conf->GSWindow.WindowPos)
|
: wxFrame(NULL, wxID_ANY, title, g_Conf->GSWindow.WindowPos)
|
||||||
, m_timer_UpdateTitle( this )
|
, m_timer_UpdateTitle( this )
|
||||||
{
|
{
|
||||||
SetIcons( wxGetApp().GetIconBundle() );
|
SetIcons( wxGetApp().GetIconBundle() );
|
||||||
|
|
|
@ -95,7 +95,7 @@ protected:
|
||||||
CpuUsageProvider m_CpuUsage;
|
CpuUsageProvider m_CpuUsage;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GSFrame(wxWindow* parent, const wxString& title);
|
GSFrame( const wxString& title);
|
||||||
virtual ~GSFrame() throw();
|
virtual ~GSFrame() throw();
|
||||||
|
|
||||||
GSPanel* GetViewport();
|
GSPanel* GetViewport();
|
||||||
|
|
Loading…
Reference in New Issue