diff --git a/src/emu/debug/dvbpoints.c b/src/emu/debug/dvbpoints.c index 9b48bc96787..5619adff0bd 100644 --- a/src/emu/debug/dvbpoints.c +++ b/src/emu/debug/dvbpoints.c @@ -72,26 +72,6 @@ void debug_view_breakpoints::enumerate_sources() } -//------------------------------------------------- -// view_notify - handle notification of updates -// to cursor changes -//------------------------------------------------- - -void debug_view_breakpoints::view_notify(debug_view_notification type) -{ -} - - -//------------------------------------------------- -// view_char - handle a character typed within -// the current view -//------------------------------------------------- - -void debug_view_breakpoints::view_char(int chval) -{ -} - - //------------------------------------------------- // view_click - handle a mouse click within the // current view @@ -134,7 +114,7 @@ void debug_view_breakpoints::view_click(const int button, const debug_view_xy& p device_debug::breakpoint** bpList = NULL; const int numBPs = breakpoints(SORT_NONE, bpList); - const int bpIndex = pos.y-1; + const int bpIndex = pos.y - 1; if (bpIndex > numBPs || bpIndex < 0) return; @@ -147,7 +127,9 @@ void debug_view_breakpoints::view_click(const int button, const debug_view_xy& p delete[] bpList; } - view_update(); + begin_update(); + m_update_pending = true; + end_update(); } @@ -331,7 +313,7 @@ int debug_view_breakpoints::breakpoints(SortMode sort, device_debug::breakpoint* //------------------------------------------------- // view_update - update the contents of the -// disassembly view +// breakpoints view //------------------------------------------------- void debug_view_breakpoints::view_update() diff --git a/src/emu/debug/dvbpoints.h b/src/emu/debug/dvbpoints.h index 38cd30de800..bb80b840ebb 100644 --- a/src/emu/debug/dvbpoints.h +++ b/src/emu/debug/dvbpoints.h @@ -58,14 +58,11 @@ public: protected: // view overrides virtual void view_update(); - virtual void view_notify(debug_view_notification type); - virtual void view_char(int chval); virtual void view_click(const int button, const debug_view_xy& pos); private: // internal helpers void enumerate_sources(); - bool recompute(offs_t pc, int startline, int lines); void pad_astring_to_length(astring& str, int len); int breakpoints(SortMode sort, device_debug::breakpoint**& bpList); diff --git a/src/emu/debug/dvwpoints.c b/src/emu/debug/dvwpoints.c index e9ff9a8754d..b7054b4e4bb 100644 --- a/src/emu/debug/dvwpoints.c +++ b/src/emu/debug/dvwpoints.c @@ -71,26 +71,6 @@ void debug_view_watchpoints::enumerate_sources() } -//------------------------------------------------- -// view_notify - handle notification of updates -// to cursor changes -//------------------------------------------------- - -void debug_view_watchpoints::view_notify(debug_view_notification type) -{ -} - - -//------------------------------------------------- -// view_char - handle a character typed within -// the current view -//------------------------------------------------- - -void debug_view_watchpoints::view_char(int chval) -{ -} - - //------------------------------------------------- // view_click - handle a mouse click within the // current view @@ -141,7 +121,7 @@ void debug_view_watchpoints::view_click(const int button, const debug_view_xy& p device_debug::watchpoint** wpList = NULL; const int numWPs = watchpoints(SORT_NONE, wpList); - const int wpIndex = pos.y-1; + const int wpIndex = pos.y - 1; if (wpIndex > numWPs || wpIndex < 0) return; @@ -154,7 +134,9 @@ void debug_view_watchpoints::view_click(const int button, const debug_view_xy& p delete[] wpList; } - view_update(); + begin_update(); + m_update_pending = true; + end_update(); } @@ -387,7 +369,7 @@ int debug_view_watchpoints::watchpoints(SortMode sort, device_debug::watchpoint* //------------------------------------------------- // view_update - update the contents of the -// disassembly view +// watchpoints view //------------------------------------------------- void debug_view_watchpoints::view_update() diff --git a/src/emu/debug/dvwpoints.h b/src/emu/debug/dvwpoints.h index 7c35e9278b6..6414b3b0424 100644 --- a/src/emu/debug/dvwpoints.h +++ b/src/emu/debug/dvwpoints.h @@ -62,14 +62,11 @@ public: protected: // view overrides virtual void view_update(); - virtual void view_notify(debug_view_notification type); - virtual void view_char(int chval); virtual void view_click(const int button, const debug_view_xy& pos); private: // internal helpers void enumerate_sources(); - bool recompute(offs_t pc, int startline, int lines); void pad_astring_to_length(astring& str, int len); int watchpoints(SortMode sort, device_debug::watchpoint**& bpList);