mirror of
https://github.com/holub/mame
synced 2025-07-04 01:18:59 +03:00
dvdisasm.cpp: move to the position of the cursor only if the cursor is actually visible (nw)
Otherwise it would jump to a seemingly random position in certain cases.
This commit is contained in:
parent
49af3714fa
commit
e1b078da42
@ -109,7 +109,7 @@ void debug_view_disasm::enumerate_sources()
|
||||
|
||||
void debug_view_disasm::view_notify(debug_view_notification type)
|
||||
{
|
||||
if(type == VIEW_NOTIFY_CURSOR_CHANGED)
|
||||
if((type == VIEW_NOTIFY_CURSOR_CHANGED) && (m_cursor_visible == true))
|
||||
adjust_visible_y_for_cursor();
|
||||
|
||||
else if(type == VIEW_NOTIFY_SOURCE_CHANGED)
|
||||
|
Loading…
Reference in New Issue
Block a user