Fix the DSPLLE debugger window refresh without including wxWidgets in the core.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7020 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice 2011-01-31 14:25:50 +00:00
parent 47d182657e
commit ad71303007
5 changed files with 19 additions and 42 deletions

View file

@ -153,9 +153,15 @@ void DSPDebuggerLLE::OnChangeState(wxCommandEvent& event)
m_mgr.Update();
}
void Host_RefreshDSPDebuggerWindow()
{
if (m_DebuggerFrame)
m_DebuggerFrame->Refresh();
}
void DSPDebuggerLLE::Refresh()
{
#if defined HAVE_X11 && HAVE_X11
#if defined __WXGTK__
if (!wxIsMainThread())
wxMutexGuiEnter();
#endif
@ -164,7 +170,7 @@ void DSPDebuggerLLE::Refresh()
UpdateRegisterFlags();
UpdateState();
m_mgr.Update();
#if defined HAVE_X11 && HAVE_X11
#if defined __WXGTK__
if (!wxIsMainThread())
wxMutexGuiLeave();
#endif