Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
Debugger: Event Viewer - Fixed previous frame's events disappearing 1…
Browse files Browse the repository at this point in the history
… scanline too early
  • Loading branch information
SourMesen committed Apr 24, 2020
1 parent e586ce7 commit dee704a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/EventManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit dee704a

Please sign in to comment.