diff options
author | Vas Crabb <vas@vastheman.com> | 2021-01-29 00:51:28 +1100 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2021-01-29 00:51:28 +1100 |
commit | 86666f388eb8ee809a953e320acb828f2bd574c1 (patch) | |
tree | eead887b37a9fd071fb505e640bba2fe11f6387c /src/emu | |
parent | 1832b25ad131c25c9f85cf68ef9ff053a74c0341 (diff) |
Bug fixes and usablility enhancements:
* Declare intent when requesting virtual memory (for NetBSD, 7712)
* Improve scrolling behaviour in Qt debugger (MT07795)
* Added prompts to input mapping menu to make it less intimidating
Diffstat (limited to 'src/emu')
-rw-r--r-- | src/emu/debug/debugvw.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emu/debug/debugvw.cpp b/src/emu/debug/debugvw.cpp index a104bb82529..120152b3d5f 100644 --- a/src/emu/debug/debugvw.cpp +++ b/src/emu/debug/debugvw.cpp @@ -250,6 +250,7 @@ void debug_view::adjust_visible_x_for_cursor() m_topleft.x = m_cursor.x; else if (m_cursor.x >= m_topleft.x + m_visible.x - 1) m_topleft.x = m_cursor.x - m_visible.x + 2; + m_topleft.x = (std::max)((std::min)(m_topleft.x, m_total.x - m_visible.x), 0); } @@ -265,6 +266,7 @@ void debug_view::adjust_visible_y_for_cursor() m_topleft.y = m_cursor.y; else if (m_cursor.y >= m_topleft.y + m_visible.y - 1) m_topleft.y = m_cursor.y - m_visible.y + 2; + m_topleft.y = (std::max)((std::min)(m_topleft.y, m_total.y - m_visible.y), 0); } |