From 20c3a0f2d838668e2da17dd981c580ddd7c933c3 Mon Sep 17 00:00:00 2001 From: Fiora Date: Thu, 18 Sep 2014 03:54:57 -0700 Subject: Debugger: scroll by multiples of 4 bytes Avoids that weird effect where scrolling offsets code from 4-byte boundaries, showing nonsense 75% of the time. --- Source/Core/DolphinWX/Debugger/CodeView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/DolphinWX/Debugger/CodeView.cpp') diff --git a/Source/Core/DolphinWX/Debugger/CodeView.cpp b/Source/Core/DolphinWX/Debugger/CodeView.cpp index cf7dec412c..5abd5f606f 100644 --- a/Source/Core/DolphinWX/Debugger/CodeView.cpp +++ b/Source/Core/DolphinWX/Debugger/CodeView.cpp @@ -127,11 +127,11 @@ void CCodeView::OnScrollWheel(wxMouseEvent& event) if (scroll_down) { - m_curAddress += num_lines; + m_curAddress += num_lines * 4; } else { - m_curAddress -= num_lines; + m_curAddress -= num_lines * 4; } Refresh(); -- cgit v1.2.3