diff options
| author | Mai <mathew1800@gmail.com> | 2022-11-27 06:00:46 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-27 06:00:46 +0000 |
| commit | 44f8b8c1007f2ead8530d53c4aca3df8fee6d6af (patch) | |
| tree | c987c2ea4757dc9f79303f74de42dacf8620272b /Source/Core/VideoCommon/BPStructs.cpp | |
| parent | c8d30968f356afaec67d7ec2582c35857f7c77cb (diff) | |
| parent | daa70533cdb0de0a05b4341b499b4cd88e1a3368 (diff) | |
Merge pull request #11303 from AdmiralCurtiss/coretiming-class
CoreTiming: Refactor to class.
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BPStructs.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index bf0438a74b..a4c381d313 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -21,6 +21,7 @@ #include "Core/FifoPlayer/FifoRecorder.h" #include "Core/HW/Memmap.h" #include "Core/HW/VideoInterface.h" +#include "Core/System.h" #include "VideoCommon/BPFunctions.h" #include "VideoCommon/BPMemory.h" @@ -324,7 +325,8 @@ static void BPWritten(const BPCmd& bp, int cycles_into_future) if (g_ActiveConfig.bImmediateXFB) { // below div two to convert from bytes to pixels - it expects width, not stride - g_renderer->Swap(destAddr, destStride / 2, destStride, height, CoreTiming::GetTicks()); + g_renderer->Swap(destAddr, destStride / 2, destStride, height, + Core::System::GetInstance().GetCoreTiming().GetTicks()); } else { |
