HW/VideoInterface: Refactor to class.

This commit is contained in:
Admiral H. Curtiss
2023-03-10 22:14:54 +01:00
parent 2102e64299
commit 069280ddc6
13 changed files with 450 additions and 463 deletions

View File

@ -76,7 +76,8 @@ double PerformanceMetrics::GetMaxSpeed() const
double PerformanceMetrics::GetLastSpeedDenominator() const
{
return DT_s(m_speed_counter.GetLastRawDt()).count() * VideoInterface::GetTargetRefreshRate();
return DT_s(m_speed_counter.GetLastRawDt()).count() *
Core::System::GetInstance().GetVideoInterface().GetTargetRefreshRate();
}
void PerformanceMetrics::DrawImGuiStats(const float backbuffer_scale)