mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Some work on cleaning up the FrameAui code. Primarily this fixes the debugger windows for the audio and video plugins. They are now all subclasses of a wxPanel, instead of a mix of wxFrames and wxDialogs. This makes them work correctly in linux, windows (they really didn't before), and most likely on MacOSX too!
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5913 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -64,7 +64,7 @@ Make AA apply instantly during gameplay if possible
|
||||
#include "GUI/ConfigDlg.h"
|
||||
GFXConfigDialogOGL *m_ConfigFrame = NULL;
|
||||
#include "Debugger/Debugger.h"
|
||||
GFXDebuggerOGL *m_DebuggerFrame = NULL;
|
||||
static GFXDebuggerOGL *m_DebuggerFrame = NULL;
|
||||
#endif // HAVE_WX
|
||||
|
||||
#include "VideoConfig.h"
|
||||
@ -152,15 +152,23 @@ wxWindow* GetParentedWxWindow(HWND Parent)
|
||||
}
|
||||
#endif
|
||||
|
||||
void DllDebugger(HWND _hParent, bool Show)
|
||||
void DllDebugger(void *_hParent, bool Show)
|
||||
{
|
||||
#if defined(HAVE_WX) && HAVE_WX
|
||||
if (Show) {
|
||||
if (Show)
|
||||
{
|
||||
if (!m_DebuggerFrame)
|
||||
m_DebuggerFrame = new GFXDebuggerOGL(NULL);
|
||||
m_DebuggerFrame = new GFXDebuggerOGL((wxWindow *)_hParent);
|
||||
m_DebuggerFrame->Show();
|
||||
} else {
|
||||
if (m_DebuggerFrame) m_DebuggerFrame->Hide();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (m_DebuggerFrame)
|
||||
{
|
||||
m_DebuggerFrame->Close();
|
||||
m_DebuggerFrame->Destroy();
|
||||
m_DebuggerFrame = NULL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user