mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
SDL: Fix CPU clock control in menu not applying
This commit is contained in:
parent
b704c37e91
commit
d3f87dc357
|
@ -863,7 +863,11 @@ void SDLHostInterface::DrawQuickSettingsMenu()
|
|||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
settings_changed |= ImGui::MenuItem("CPU Clock Control", nullptr, &m_settings_copy.cpu_overclock_enable);
|
||||
if (ImGui::MenuItem("CPU Clock Control", nullptr, &m_settings_copy.cpu_overclock_enable))
|
||||
{
|
||||
settings_changed = true;
|
||||
m_settings_copy.UpdateOverclockActive();
|
||||
}
|
||||
|
||||
if (ImGui::BeginMenu("CPU Clock Speed"))
|
||||
{
|
||||
|
@ -874,7 +878,8 @@ void SDLHostInterface::DrawQuickSettingsMenu()
|
|||
{
|
||||
if (ImGui::MenuItem(TinyString::FromFormat("%u%%", value), nullptr, percent == value))
|
||||
{
|
||||
m_settings_copy.SetCPUOverclockPercent(percent);
|
||||
m_settings_copy.SetCPUOverclockPercent(value);
|
||||
m_settings_copy.UpdateOverclockActive();
|
||||
settings_changed = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue