mirror of
https://github.com/holub/mame
synced 2025-04-27 02:33:13 +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();
|
enumerate_sources();
|
||||||
if (m_source_list.count() == 0)
|
if (m_source_list.count() == 0)
|
||||||
throw std::bad_alloc();
|
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);
|
const int numBPs = breakpoints(SORT_NONE, bpList);
|
||||||
|
|
||||||
// Set the view region so the scroll bars update
|
// 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
|
// Draw
|
||||||
debug_view_char *dest = m_viewdata;
|
debug_view_char *dest = m_viewdata;
|
||||||
|
@ -31,10 +31,6 @@ debug_view_watchpoints::debug_view_watchpoints(running_machine &machine, debug_v
|
|||||||
enumerate_sources();
|
enumerate_sources();
|
||||||
if (m_source_list.count() == 0)
|
if (m_source_list.count() == 0)
|
||||||
throw std::bad_alloc();
|
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);
|
const int numWPs = watchpoints(SORT_NONE, wpList);
|
||||||
|
|
||||||
// Set the view region so the scroll bars update
|
// 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
|
// Draw
|
||||||
debug_view_char *dest = m_viewdata;
|
debug_view_char *dest = m_viewdata;
|
||||||
|
Loading…
Reference in New Issue
Block a user