diff options
author | Vas Crabb <vas@vastheman.com> | 2015-02-23 00:27:14 +1100 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2015-02-23 04:23:12 +1100 |
commit | 01ec6458ff508d568815db3de8a2eb7e07d45ed0 (patch) | |
tree | ec5ffd84f1ceb55ab59e3fde2b21f3b8d816e12d | |
parent | 1f9c34e8327b27a69b246aa094df6dccaeaf1f62 (diff) |
Make opening a break/watchpoints window work better if there are already ten or more of them
-rw-r--r-- | src/emu/debug/dvbpoints.c | 8 | ||||
-rw-r--r-- | src/emu/debug/dvwpoints.c | 8 |
2 files changed, 6 insertions, 10 deletions
diff --git a/src/emu/debug/dvbpoints.c b/src/emu/debug/dvbpoints.c index e97fe5ba449..cdd2cde2b32 100644 --- a/src/emu/debug/dvbpoints.c +++ b/src/emu/debug/dvbpoints.c @@ -32,10 +32,6 @@ debug_view_breakpoints::debug_view_breakpoints(running_machine &machine, debug_v enumerate_sources(); if (m_source_list.count() == 0) throw std::bad_alloc(); - - // configure the view - m_total.y = 10; - m_supports_cursor = false; } @@ -325,7 +321,9 @@ void debug_view_breakpoints::view_update() const int numBPs = breakpoints(SORT_NONE, bpList); // Set the view region so the scroll bars update - m_total.y = numBPs+1; + m_total.y = numBPs + 1; + if (m_total.y < 10) + m_total.y = 10; // Draw debug_view_char *dest = m_viewdata; diff --git a/src/emu/debug/dvwpoints.c b/src/emu/debug/dvwpoints.c index 8f16d57219b..2d60699d78d 100644 --- a/src/emu/debug/dvwpoints.c +++ b/src/emu/debug/dvwpoints.c @@ -31,10 +31,6 @@ debug_view_watchpoints::debug_view_watchpoints(running_machine &machine, debug_v enumerate_sources(); if (m_source_list.count() == 0) throw std::bad_alloc(); - - // configure the view - m_total.y = 10; - m_supports_cursor = false; } @@ -379,7 +375,9 @@ void debug_view_watchpoints::view_update() const int numWPs = watchpoints(SORT_NONE, wpList); // Set the view region so the scroll bars update - m_total.y = numWPs+1; + m_total.y = numWPs + 1; + if (m_total.y < 10) + m_total.y = 10; // Draw debug_view_char *dest = m_viewdata; |