diff options
| author | Mai <mai.iam2048@gmail.com> | 2024-01-05 23:34:02 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-05 23:34:02 -0500 |
| commit | 6fc278b288912a0f30807cd7e39e6b87e505e511 (patch) | |
| tree | 9c2e83ecb4f93ee175022d3e3b23df84840313f5 /Source/Core/VideoCommon | |
| parent | 2f7f7afe6d222699c04d490f10f8aa16c11373d3 (diff) | |
| parent | fc2ec826d462881f94b324fb6971cc920200f093 (diff) | |
Merge pull request #12483 from AdmiralCurtiss/system-fifoplayer
FifoPlayer: Move instance to System.
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/BPStructs.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index f1dff8fd97..1a8580df8f 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -355,17 +355,18 @@ static void BPWritten(PixelShaderManager& pixel_shader_manager, XFStateManager& // Might also clean up some issues with games doing XFB copies they don't intend to // display. + auto& system = Core::System::GetInstance(); if (g_ActiveConfig.bImmediateXFB) { // below div two to convert from bytes to pixels - it expects width, not stride - u64 ticks = Core::System::GetInstance().GetCoreTiming().GetTicks(); + u64 ticks = system.GetCoreTiming().GetTicks(); g_presenter->ImmediateSwap(destAddr, destStride / 2, destStride, height, ticks); } else { - if (FifoPlayer::GetInstance().IsRunningWithFakeVideoInterfaceUpdates()) + if (system.GetFifoPlayer().IsRunningWithFakeVideoInterfaceUpdates()) { - auto& vi = Core::System::GetInstance().GetVideoInterface(); + auto& vi = system.GetVideoInterface(); vi.FakeVIUpdate(destAddr, srcRect.GetWidth(), destStride, height); } } |
