From fd188ec09eb5a73960a0e6ef071c3d979fb39aa0 Mon Sep 17 00:00:00 2001 From: hrydgard Date: Mon, 25 Aug 2008 20:34:11 +0000 Subject: Switch between JIT and Interpreter at runtime using the debug window (pause first!) Plus assorted cleanup & fixes. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@312 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DebuggerWX/src/CodeView.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Source/Core/DebuggerWX/src/CodeView.cpp') diff --git a/Source/Core/DebuggerWX/src/CodeView.cpp b/Source/Core/DebuggerWX/src/CodeView.cpp index d6aab45ac9..81e20ab704 100644 --- a/Source/Core/DebuggerWX/src/CodeView.cpp +++ b/Source/Core/DebuggerWX/src/CodeView.cpp @@ -341,9 +341,8 @@ void CCodeView::OnPaint(wxPaintEvent& event) dc.DrawRectangle(0, 0, 16, rc.height); dc.DrawRectangle(0, 0, rc.width, 5); // TODO - clean up this freaking mess!!!!! - int i; - for (i = -numRows; i <= numRows; i++) + for (int i = -numRows; i <= numRows; i++) { unsigned int address = curAddress + i * align; @@ -469,7 +468,7 @@ void CCodeView::OnPaint(wxPaintEvent& event) dc.SetPen(currentPen); - for (i = 0; i < numBranches; i++) + for (int i = 0; i < numBranches; i++) { int x = 300 + (branches[i].srcAddr % 9) * 8; _MoveTo(x-2, branches[i].src); -- cgit v1.2.3