mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
GPU: Narrowing warning fix
This commit is contained in:
parent
3bafdf88d4
commit
9148581213
|
@ -300,8 +300,8 @@ void GPU::UpdateCRTCConfig()
|
||||||
}
|
}
|
||||||
|
|
||||||
const TickCount ticks_per_frame = cs.horizontal_total * cs.vertical_total;
|
const TickCount ticks_per_frame = cs.horizontal_total * cs.vertical_total;
|
||||||
const double vertical_frequency =
|
const float vertical_frequency =
|
||||||
static_cast<double>((u64(MASTER_CLOCK) * 11) / 7) / static_cast<double>(ticks_per_frame);
|
static_cast<float>(static_cast<double>((u64(MASTER_CLOCK) * 11) / 7) / static_cast<double>(ticks_per_frame));
|
||||||
m_system->SetThrottleFrequency(vertical_frequency);
|
m_system->SetThrottleFrequency(vertical_frequency);
|
||||||
|
|
||||||
const u8 horizontal_resolution_index = m_GPUSTAT.horizontal_resolution_1 | (m_GPUSTAT.horizontal_resolution_2 << 2);
|
const u8 horizontal_resolution_index = m_GPUSTAT.horizontal_resolution_1 | (m_GPUSTAT.horizontal_resolution_2 << 2);
|
||||||
|
|
Loading…
Reference in a new issue