From 20c3a0f2d838668e2da17dd981c580ddd7c933c3 Mon Sep 17 00:00:00 2001 From: Fiora Date: Thu, 18 Sep 2014 03:54:57 -0700 Subject: [PATCH] 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 ++-- Source/Core/DolphinWX/Debugger/MemoryView.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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(); diff --git a/Source/Core/DolphinWX/Debugger/MemoryView.cpp b/Source/Core/DolphinWX/Debugger/MemoryView.cpp index 32a1c58f30..dd6e3533bb 100644 --- a/Source/Core/DolphinWX/Debugger/MemoryView.cpp +++ b/Source/Core/DolphinWX/Debugger/MemoryView.cpp @@ -147,11 +147,11 @@ void CMemoryView::OnScrollWheel(wxMouseEvent& event) if (scroll_down) { - curAddress += num_lines; + curAddress += num_lines * 4; } else { - curAddress -= num_lines; + curAddress -= num_lines * 4; } Refresh();