summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Debugger/CodeView.cpp
diff options
context:
space:
mode:
authorFiora <fioraaeterna@gmail.com>2014-09-18 03:54:57 -0700
committerFiora <fioraaeterna@gmail.com>2014-09-18 03:54:57 -0700
commit20c3a0f2d838668e2da17dd981c580ddd7c933c3 (patch)
tree8846f345d19e52feb8bcb0ce96fa2995bc510fc2 /Source/Core/DolphinWX/Debugger/CodeView.cpp
parent74eee70fadee67d2dbcb8add2b42be8ef55ea150 (diff)
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.
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/CodeView.cpp')
-rw-r--r--Source/Core/DolphinWX/Debugger/CodeView.cpp4
1 files changed, 2 insertions, 2 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();