mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Fix an issue using render to main in combination with the log window or console window, in which the renderer was not resized when the panes were resized.
Also refresh the log window at that time so artifacts are cleared. A little more code cleanup of the debugger windows. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5983 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -317,8 +317,8 @@ EVT_AUINOTEBOOK_PAGE_CHANGED(wxID_ANY, CFrame::OnNotebookPageChanged)
|
||||
EVT_AUINOTEBOOK_TAB_RIGHT_UP(wxID_ANY, CFrame::OnTab)
|
||||
|
||||
// Post events to child panels
|
||||
EVT_MENU(wxID_ANY, CFrame::PostEvent)
|
||||
EVT_TEXT(wxID_ANY, CFrame::PostEvent)
|
||||
EVT_MENU_RANGE(IDM_INTERPRETER, IDM_ADDRBOX, CFrame::PostEvent)
|
||||
EVT_TEXT(IDM_ADDRBOX, CFrame::PostEvent)
|
||||
|
||||
END_EVENT_TABLE()
|
||||
|
||||
@ -513,10 +513,6 @@ CFrame::~CFrame()
|
||||
delete m_XRRConfig;
|
||||
#endif
|
||||
|
||||
// Close the log window now so that its settings are saved
|
||||
if (!g_pCodeWindow)
|
||||
m_LogWindow->Close();
|
||||
|
||||
ClosePages();
|
||||
|
||||
delete m_Mgr;
|
||||
@ -572,6 +568,11 @@ void CFrame::OnClose(wxCloseEvent& event)
|
||||
event.Skip();
|
||||
// Save GUI settings
|
||||
if (g_pCodeWindow) SaveIniPerspectives();
|
||||
|
||||
// Close the log window now so that its settings are saved
|
||||
if (!g_pCodeWindow)
|
||||
m_LogWindow->Close();
|
||||
|
||||
// Uninit
|
||||
m_Mgr->UnInit();
|
||||
|
||||
@ -587,10 +588,9 @@ void CFrame::OnClose(wxCloseEvent& event)
|
||||
// Warning: This may cause an endless loop if the event is propagated back to its parent
|
||||
void CFrame::PostEvent(wxCommandEvent& event)
|
||||
{
|
||||
if (g_pCodeWindow
|
||||
&& event.GetId() >= IDM_INTERPRETER && event.GetId() <= IDM_ADDRBOX
|
||||
//&& event.GetId() != IDM_JITUNLIMITED
|
||||
)
|
||||
if (g_pCodeWindow &&
|
||||
event.GetId() >= IDM_INTERPRETER &&
|
||||
event.GetId() <= IDM_ADDRBOX)
|
||||
{
|
||||
event.StopPropagation();
|
||||
g_pCodeWindow->GetEventHandler()->AddPendingEvent(event);
|
||||
|
Reference in New Issue
Block a user