mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-15 23:08:51 +00:00
Merge branch 'master' of https://github.com/dolphin-emu/dolphin
This commit is contained in:
commit
69ef86856d
100 changed files with 40756 additions and 25691 deletions
|
@ -83,7 +83,7 @@ void ColorCorrectionConfigWindow::Create()
|
|||
gamma_layout->addWidget(new QLabel(tr("Game Gamma")), 0, 0);
|
||||
gamma_layout->addWidget(m_game_gamma, 0, 1);
|
||||
m_game_gamma->SetDescription(tr(TR_GAME_GAMMA_DESCRIPTION));
|
||||
m_game_gamma_value = new QLabel(tr(""));
|
||||
m_game_gamma_value = new QLabel();
|
||||
gamma_layout->addWidget(m_game_gamma_value, 0, 2);
|
||||
|
||||
m_correct_gamma = new ConfigBool(tr("Correct SDR Gamma"), Config::GFX_CC_CORRECT_GAMMA);
|
||||
|
@ -99,7 +99,7 @@ void ColorCorrectionConfigWindow::Create()
|
|||
Config::GFX_CC_SDR_DISPLAY_CUSTOM_GAMMA, 0.01f);
|
||||
gamma_layout->addWidget(new QLabel(tr("SDR Display Custom Gamma")), 3, 0);
|
||||
gamma_layout->addWidget(m_sdr_display_custom_gamma, 3, 1);
|
||||
m_sdr_display_custom_gamma_value = new QLabel(tr(""));
|
||||
m_sdr_display_custom_gamma_value = new QLabel();
|
||||
gamma_layout->addWidget(m_sdr_display_custom_gamma_value, 3, 2);
|
||||
|
||||
m_sdr_display_gamma_srgb->setEnabled(m_correct_gamma->isChecked());
|
||||
|
@ -122,7 +122,7 @@ void ColorCorrectionConfigWindow::Create()
|
|||
Config::GFX_CC_HDR_PAPER_WHITE_NITS, 1.f);
|
||||
hdr_layout->addWidget(new QLabel(tr("HDR Paper White Nits")), 0, 0);
|
||||
hdr_layout->addWidget(m_hdr_paper_white_nits, 0, 1);
|
||||
m_hdr_paper_white_nits_value = new QLabel(tr(""));
|
||||
m_hdr_paper_white_nits_value = new QLabel();
|
||||
hdr_layout->addWidget(m_hdr_paper_white_nits_value, 0, 2);
|
||||
|
||||
m_hdr_paper_white_nits_value->setText(
|
||||
|
|
|
@ -279,7 +279,7 @@ u32 PostProcessingConfigWindow::ConfigGroup::AddInteger(PostProcessingConfigWind
|
|||
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]));
|
||||
static_cast<double>(m_config_option->m_integer_step_values[i]));
|
||||
|
||||
auto* const slider = new QSlider(Qt::Orientation::Horizontal);
|
||||
slider->setMinimum(0);
|
||||
|
@ -289,7 +289,7 @@ u32 PostProcessingConfigWindow::ConfigGroup::AddInteger(PostProcessingConfigWind
|
|||
QObject::connect(slider, &QSlider::valueChanged,
|
||||
[this, parent](int value) { parent->UpdateInteger(this, value); });
|
||||
|
||||
auto* const value_box = new QLineEdit(QString::number(current_value));
|
||||
auto* const value_box = new QLineEdit(QString::number(m_config_option->m_integer_values[i]));
|
||||
value_box->setEnabled(false);
|
||||
|
||||
grid->addWidget(slider, row, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue