summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPStructs.cpp
diff options
context:
space:
mode:
authorMai <mathew1800@gmail.com>2022-11-27 06:00:46 +0000
committerGitHub <noreply@github.com>2022-11-27 06:00:46 +0000
commit44f8b8c1007f2ead8530d53c4aca3df8fee6d6af (patch)
treec987c2ea4757dc9f79303f74de42dacf8620272b /Source/Core/VideoCommon/BPStructs.cpp
parentc8d30968f356afaec67d7ec2582c35857f7c77cb (diff)
parentdaa70533cdb0de0a05b4341b499b4cd88e1a3368 (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.cpp4
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
{