mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
Merge pull request #11866 from Filoppi/patch-17
Qt: Fix some Post Process Configuration Widget issues 2
This commit is contained in:
commit
744a5ddfc4
@ -269,7 +269,6 @@ u32 PostProcessingConfigWindow::ConfigGroup::AddInteger(PostProcessingConfigWind
|
|||||||
|
|
||||||
for (size_t i = 0; i < vector_size; ++i)
|
for (size_t i = 0; i < vector_size; ++i)
|
||||||
{
|
{
|
||||||
const int current_value = m_config_option->m_integer_values[i];
|
|
||||||
const double range =
|
const double range =
|
||||||
m_config_option->m_integer_max_values[i] - m_config_option->m_integer_min_values[i];
|
m_config_option->m_integer_max_values[i] - m_config_option->m_integer_min_values[i];
|
||||||
// "How many steps we have is the range divided by the step interval configured.
|
// "How many steps we have is the range divided by the step interval configured.
|
||||||
@ -278,6 +277,9 @@ u32 PostProcessingConfigWindow::ConfigGroup::AddInteger(PostProcessingConfigWind
|
|||||||
// Round up so if it is outside our range, then set it to the minimum or maximum"
|
// Round up so if it is outside our range, then set it to the minimum or maximum"
|
||||||
const int steps =
|
const int steps =
|
||||||
std::ceil(range / static_cast<double>(m_config_option->m_integer_step_values[i]));
|
std::ceil(range / static_cast<double>(m_config_option->m_integer_step_values[i]));
|
||||||
|
const int current_value = std::round(
|
||||||
|
(m_config_option->m_integer_values[i] - m_config_option->m_integer_min_values[i]) /
|
||||||
|
static_cast<double>(m_config_option->m_integer_max_values[i]));
|
||||||
|
|
||||||
auto* const slider = new QSlider(Qt::Orientation::Horizontal);
|
auto* const slider = new QSlider(Qt::Orientation::Horizontal);
|
||||||
slider->setMinimum(0);
|
slider->setMinimum(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user