Permalink
Browse files

Qt: Config/Advanced: Fix CPU Clock Speed Slider

Changes rounding from ceiling to nearest, when updating the slider value. Using ceiling as rounding made some values inaccessible.
  • Loading branch information...
master0fdisaster committed Aug 10, 2018
1 parent 1544d7d commit 0d79e8a2ca18b2177c2cb853a32279e532089775
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Core/DolphinQt/Settings/AdvancedPane.cpp
@@ -139,7 +139,7 @@ void AdvancedPane::Update()
m_cpu_clock_override_slider_label->setEnabled(enable_cpu_clock_override_widgets);
m_cpu_clock_override_slider->setValue(
static_cast<int>(std::ceil(std::log2f(SConfig::GetInstance().m_OCFactor) * 25.f + 100.f)));
static_cast<int>(std::round(std::log2f(SConfig::GetInstance().m_OCFactor) * 25.f + 100.f)));
m_cpu_clock_override_slider_label->setText([] {
int core_clock = SystemTimers::GetTicksPerSecond() / std::pow(10, 6);

0 comments on commit 0d79e8a

Please sign in to comment.