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.
This commit is contained in:
Fiora 2014-09-18 03:54:57 -07:00
parent 74eee70fad
commit 20c3a0f2d8
2 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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();