diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-07-10 23:24:35 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-07-10 23:24:37 -0400 |
| commit | 9802a5e16b5860d1c6b42beeb1b8ca883467e1b1 (patch) | |
| tree | 9eb4134eb2d3684d17910fae973880021eea6477 /Source/Core/VideoCommon/RenderBase.cpp | |
| parent | a99c7d01e1b043df9c09a3047bf0442f88ad94d3 (diff) | |
VideoCommon/Statistics: Make all member functions non-static
Rather than making Statistics' member functions operate on the global
variable instance of itself, we can make these functions member
functions and operate on a by-instance state, removing the direct
dependency on the global variable itself.
This also makes for less reading, as there's no need to repeat "stats."
for all variable accesses.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index 16d86bf001..06471c8560 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -524,7 +524,7 @@ void Renderer::DrawDebugText() } if (g_ActiveConfig.bOverlayStats) - Statistics::Display(); + stats.Display(); if (g_ActiveConfig.bShowNetPlayMessages && g_netplay_chat_ui) g_netplay_chat_ui->Display(); @@ -533,7 +533,7 @@ void Renderer::DrawDebugText() g_netplay_golf_ui->Display(); if (g_ActiveConfig.bOverlayProjStats) - Statistics::DisplayProj(); + stats.DisplayProj(); } float Renderer::CalculateDrawAspectRatio() const |
