Debugger: Event Viewer - Fixed previous frame's events disappearing 1 scanline too early

This commit is contained in:
Sour 2020-04-24 16:16:43 -04:00
parent e586ce7208
commit dee704abb9

View file

@ -176,7 +176,7 @@ uint32_t EventManager::TakeEventSnapshot(EventViewerDisplayOptions options)
_snapshotCycle = cycle;
if(options.ShowPreviousFrameEvents && scanline != 0) {
for(DebugEventInfo &evt : _prevDebugEvents) {
uint32_t evtKey = (evt.Scanline << 9) + evt.Cycle;
uint32_t evtKey = ((evt.Scanline + 1) << 9) + evt.Cycle;
if(evtKey > key) {
_snapshot.push_back(evt);
}