pcsx2: Do not move console with main frame if maximised

This commit is contained in:
Jonathan Li 2016-02-04 18:55:44 +00:00
parent d6e702a9eb
commit 98de0d4351
1 changed files with 8 additions and 3 deletions

View File

@ -163,9 +163,14 @@ void MainEmuFrame::OnMoveAround( wxMoveEvent& evt )
if( g_Conf->ProgLogBox.AutoDock ) if( g_Conf->ProgLogBox.AutoDock )
{ {
g_Conf->ProgLogBox.DisplayPosition = GetRect().GetTopRight(); if (ConsoleLogFrame* proglog = wxGetApp().GetProgramLog())
if( ConsoleLogFrame* proglog = wxGetApp().GetProgramLog() ) {
proglog->SetPosition( g_Conf->ProgLogBox.DisplayPosition ); if (!proglog->IsMaximized())
{
g_Conf->ProgLogBox.DisplayPosition = GetRect().GetTopRight();
proglog->SetPosition(g_Conf->ProgLogBox.DisplayPosition);
}
}
} }
evt.Skip(); evt.Skip();