From e44e412da8f1c6ac4829a65424644476f9dd5262 Mon Sep 17 00:00:00 2001 From: skidau Date: Mon, 18 Jan 2010 13:44:40 +0000 Subject: [PATCH] Debugger cleanup * Made the debugger toolbar height match the other toolbars. * Centered the disasm on the current instruction * Allow one click view of the JIT'd code git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4878 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DebuggerWX/Src/CodeWindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/DebuggerWX/Src/CodeWindow.cpp b/Source/Core/DebuggerWX/Src/CodeWindow.cpp index 740dd21f94..75c35cd2c4 100644 --- a/Source/Core/DebuggerWX/Src/CodeWindow.cpp +++ b/Source/Core/DebuggerWX/Src/CodeWindow.cpp @@ -208,6 +208,8 @@ void CCodeWindow::OnHostMessage(wxCommandEvent& event) case IDM_UPDATEDISASMDIALOG: Update(); + if (codeview) codeview->Center(PC); +// if (m_JitWindow) Host_ShowJitResults(PC); if (m_RegisterWindow) m_RegisterWindow->NotifyUpdate(); break; @@ -266,6 +268,7 @@ void CCodeWindow::OnCodeStep(wxCommandEvent& event) void CCodeWindow::JumpToAddress(u32 _Address) { codeview->Center(_Address); + if (m_JitWindow) Host_ShowJitResults(_Address); UpdateLists(); } @@ -617,7 +620,7 @@ void CCodeWindow::InitBitmaps() // scale to 16x16 for toolbar for (size_t n = Toolbar_DebugGo; n < ToolbarDebugBitmapMax; n++) { - m_Bitmaps[n] = wxBitmap(m_Bitmaps[n].ConvertToImage().Scale(16, 16)); + m_Bitmaps[n] = wxBitmap(m_Bitmaps[n].ConvertToImage().Scale(24, 24)); } }