|
|
|
@ -17,10 +17,24 @@ void GPU_HW::Reset()
|
|
|
|
|
m_batch = {};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool GPU_HW::Initialize(System* system, DMA* dma, InterruptController* interrupt_controller, Timers* timers)
|
|
|
|
|
{
|
|
|
|
|
if (!GPU::Initialize(system, dma, interrupt_controller, timers))
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
m_resolution_scale = std::clamp<u32>(m_system->GetSettings().gpu_resolution_scale, 1, m_max_resolution_scale);
|
|
|
|
|
m_system->GetSettings().gpu_resolution_scale = m_resolution_scale;
|
|
|
|
|
m_system->GetSettings().max_gpu_resolution_scale = m_max_resolution_scale;
|
|
|
|
|
m_true_color = m_system->GetSettings().gpu_true_color;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void GPU_HW::UpdateSettings()
|
|
|
|
|
{
|
|
|
|
|
GPU::UpdateSettings();
|
|
|
|
|
|
|
|
|
|
m_resolution_scale = std::clamp<u32>(m_system->GetSettings().gpu_resolution_scale, 1, m_max_resolution_scale);
|
|
|
|
|
m_system->GetSettings().gpu_resolution_scale = m_resolution_scale;
|
|
|
|
|
m_true_color = m_system->GetSettings().gpu_true_color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|