Make opening a break/watchpoints window work better if there are already ten or more of them

This commit is contained in:
Vas Crabb 2015-02-23 00:27:14 +11:00
parent 1f9c34e832
commit 01ec6458ff
2 changed files with 6 additions and 10 deletions

View File

@ -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;
}
@ -326,6 +322,8 @@ void debug_view_breakpoints::view_update()
// Set the view region so the scroll bars update
m_total.y = numBPs + 1;
if (m_total.y < 10)
m_total.y = 10;
// Draw
debug_view_char *dest = m_viewdata;

View File

@ -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;
}
@ -380,6 +376,8 @@ void debug_view_watchpoints::view_update()
// Set the view region so the scroll bars update
m_total.y = numWPs + 1;
if (m_total.y < 10)
m_total.y = 10;
// Draw
debug_view_char *dest = m_viewdata;