From 9148581213d1a1f67c72eef4756bbc99024012fe Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 16 Feb 2020 00:13:57 +0900 Subject: [PATCH] GPU: Narrowing warning fix --- src/core/gpu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/gpu.cpp b/src/core/gpu.cpp index eeec705e6..d57de378f 100644 --- a/src/core/gpu.cpp +++ b/src/core/gpu.cpp @@ -300,8 +300,8 @@ void GPU::UpdateCRTCConfig() } const TickCount ticks_per_frame = cs.horizontal_total * cs.vertical_total; - const double vertical_frequency = - static_cast((u64(MASTER_CLOCK) * 11) / 7) / static_cast(ticks_per_frame); + const float vertical_frequency = + static_cast(static_cast((u64(MASTER_CLOCK) * 11) / 7) / static_cast(ticks_per_frame)); m_system->SetThrottleFrequency(vertical_frequency); const u8 horizontal_resolution_index = m_GPUSTAT.horizontal_resolution_1 | (m_GPUSTAT.horizontal_resolution_2 << 2);