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:
Akash 2015-08-21 13:37:14 +05:30
parent 8ebe03a89d
commit b5aceceef2
3 changed files with 4 additions and 4 deletions

View File

@ -927,7 +927,7 @@ void Pcsx2App::OpenGsPanel()
GSFrame* gsFrame = GetGsFramePtr();
if( gsFrame == NULL )
{
gsFrame = new GSFrame( GetMainFramePtr(), GetAppName() );
gsFrame = new GSFrame(GetAppName() );
m_id_GsFrame = gsFrame->GetId();
switch( wxGetApp().Overrides.GsWindowMode )

View File

@ -401,8 +401,8 @@ void GSPanel::OnLeftDclick(wxMouseEvent& evt)
static const uint TitleBarUpdateMs = 333;
GSFrame::GSFrame(wxWindow* parent, const wxString& title)
: wxFrame(parent, wxID_ANY, title, g_Conf->GSWindow.WindowPos)
GSFrame::GSFrame( const wxString& title)
: wxFrame(NULL, wxID_ANY, title, g_Conf->GSWindow.WindowPos)
, m_timer_UpdateTitle( this )
{
SetIcons( wxGetApp().GetIconBundle() );

View File

@ -95,7 +95,7 @@ protected:
CpuUsageProvider m_CpuUsage;
public:
GSFrame(wxWindow* parent, const wxString& title);
GSFrame( const wxString& title);
virtual ~GSFrame() throw();
GSPanel* GetViewport();