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);