mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
Debugger: Event Viewer - Fixed list selection not updating when clicking on an event in the ppu view
This commit is contained in:
parent
d2738bb942
commit
706b361a34
1 changed files with 2 additions and 2 deletions
|
@ -63,10 +63,10 @@ void BaseEventManager::GetEvents(DebugEventInfo* eventArray, uint32_t& maxEventC
|
|||
{
|
||||
auto lock = _lock.AcquireSafe();
|
||||
uint32_t eventCount = std::min(maxEventCount, (uint32_t)_sentEvents.size());
|
||||
memcpy(eventArray, _sentEvents.data(), eventCount * sizeof(DebugEventInfo));
|
||||
for(uint32_t i = 0; i < eventCount; i++) {
|
||||
eventArray[i].Color = GetEventConfig(eventArray[i]).Color;
|
||||
_sentEvents[i].Color = GetEventConfig(_sentEvents[i]).Color;
|
||||
}
|
||||
memcpy(eventArray, _sentEvents.data(), eventCount * sizeof(DebugEventInfo));
|
||||
maxEventCount = eventCount;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue