mirror of
https://github.com/holub/mame
synced 2025-04-25 17:56:43 +03:00
Make opening a break/watchpoints window work better if there are already ten or more of them
This commit is contained in:
parent
1f9c34e832
commit
01ec6458ff
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user