diff --git a/pcsx2/gui/Debugger/CtrlDisassemblyView.cpp b/pcsx2/gui/Debugger/CtrlDisassemblyView.cpp index 0d50b6f139..46f74d7020 100644 --- a/pcsx2/gui/Debugger/CtrlDisassemblyView.cpp +++ b/pcsx2/gui/Debugger/CtrlDisassemblyView.cpp @@ -145,6 +145,7 @@ void CtrlDisassemblyView::postEvent(wxEventType type, wxString text) { wxCommandEvent event( type, GetId() ); event.SetEventObject(this); + event.SetClientData(cpu); event.SetString(text); wxPostEvent(this,event); } @@ -153,6 +154,7 @@ void CtrlDisassemblyView::postEvent(wxEventType type, int value) { wxCommandEvent event( type, GetId() ); event.SetEventObject(this); + event.SetClientData(cpu); event.SetInt(value); wxPostEvent(this,event); } diff --git a/pcsx2/gui/Debugger/CtrlMemView.cpp b/pcsx2/gui/Debugger/CtrlMemView.cpp index c87c8bd598..b0cc085d16 100644 --- a/pcsx2/gui/Debugger/CtrlMemView.cpp +++ b/pcsx2/gui/Debugger/CtrlMemView.cpp @@ -94,6 +94,7 @@ void CtrlMemView::postEvent(wxEventType type, wxString text) { wxCommandEvent event( type, GetId() ); event.SetEventObject(this); + event.SetClientData(cpu); event.SetString(text); wxPostEvent(this,event); } @@ -102,6 +103,7 @@ void CtrlMemView::postEvent(wxEventType type, int value) { wxCommandEvent event( type, GetId() ); event.SetEventObject(this); + event.SetClientData(cpu); event.SetInt(value); wxPostEvent(this,event); } @@ -237,6 +239,19 @@ void CtrlMemView::render(wxDC& dc) } } } + + // TODO: make optional? + if (true) + { + dc.SetPen(wxColor(0xFFC0C0C0)); + dc.SetBrush(wxColor(0xFFC0C0C0)); + for (int i = 4; i < rowSize; i += 4) + { + int x = hexStart+i*3*charWidth-charWidth/2; + int y = (visibleRows+1)*rowHeight; + dc.DrawLine(x,0,x,y); + } + } } void CtrlMemView::onPopupClick(wxCommandEvent& evt) diff --git a/pcsx2/gui/Debugger/DisassemblyDialog.cpp b/pcsx2/gui/Debugger/DisassemblyDialog.cpp index f1a2ccf635..5cdd8591c9 100644 --- a/pcsx2/gui/Debugger/DisassemblyDialog.cpp +++ b/pcsx2/gui/Debugger/DisassemblyDialog.cpp @@ -354,8 +354,8 @@ void DisassemblyDialog::onDebuggerEvent(wxCommandEvent& evt) wxEventType type = evt.GetEventType(); if (type == debEVT_SETSTATUSBARTEXT) { - CtrlDisassemblyView* view = reinterpret_cast(evt.GetEventObject()); - if (view != NULL && view == currentCpu->getDisassembly()) + DebugInterface* cpu = reinterpret_cast(evt.GetClientData()); + if (cpu != NULL && cpu == currentCpu->getCpu()) GetStatusBar()->SetLabel(evt.GetString()); } else if (type == debEVT_UPDATELAYOUT) {