|
|
@ -63,6 +63,9 @@ ConfigureGraphics::ConfigureGraphics(const Core::System& system_, QWidget* paren
|
|
|
|
ui->api_widget->isEnabled());
|
|
|
|
ui->api_widget->isEnabled());
|
|
|
|
ui->bg_label->setVisible(Settings::IsConfiguringGlobal());
|
|
|
|
ui->bg_label->setVisible(Settings::IsConfiguringGlobal());
|
|
|
|
ui->bg_combobox->setVisible(!Settings::IsConfiguringGlobal());
|
|
|
|
ui->bg_combobox->setVisible(!Settings::IsConfiguringGlobal());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
connect(ui->fsr_sharpening_slider, &QSlider::valueChanged, this,
|
|
|
|
|
|
|
|
&ConfigureGraphics::SetFSRIndicatorText);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void ConfigureGraphics::UpdateDeviceSelection(int device) {
|
|
|
|
void ConfigureGraphics::UpdateDeviceSelection(int device) {
|
|
|
@ -110,6 +113,7 @@ void ConfigureGraphics::SetConfiguration() {
|
|
|
|
static_cast<int>(Settings::values.resolution_setup.GetValue()));
|
|
|
|
static_cast<int>(Settings::values.resolution_setup.GetValue()));
|
|
|
|
ui->scaling_filter_combobox->setCurrentIndex(
|
|
|
|
ui->scaling_filter_combobox->setCurrentIndex(
|
|
|
|
static_cast<int>(Settings::values.scaling_filter.GetValue()));
|
|
|
|
static_cast<int>(Settings::values.scaling_filter.GetValue()));
|
|
|
|
|
|
|
|
ui->fsr_sharpening_slider->setValue(Settings::values.fsr_sharpening_slider.GetValue());
|
|
|
|
ui->anti_aliasing_combobox->setCurrentIndex(
|
|
|
|
ui->anti_aliasing_combobox->setCurrentIndex(
|
|
|
|
static_cast<int>(Settings::values.anti_aliasing.GetValue()));
|
|
|
|
static_cast<int>(Settings::values.anti_aliasing.GetValue()));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -155,6 +159,12 @@ void ConfigureGraphics::SetConfiguration() {
|
|
|
|
Settings::values.bg_green.GetValue(),
|
|
|
|
Settings::values.bg_green.GetValue(),
|
|
|
|
Settings::values.bg_blue.GetValue()));
|
|
|
|
Settings::values.bg_blue.GetValue()));
|
|
|
|
UpdateAPILayout();
|
|
|
|
UpdateAPILayout();
|
|
|
|
|
|
|
|
SetFSRIndicatorText(ui->fsr_sharpening_slider->sliderPosition());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ConfigureGraphics::SetFSRIndicatorText(int percentage) {
|
|
|
|
|
|
|
|
ui->fsr_sharpening_value->setText(
|
|
|
|
|
|
|
|
tr("%1%", "FSR sharpening percentage (e.g. 50%)").arg(100 - (percentage / 2)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void ConfigureGraphics::ApplyConfiguration() {
|
|
|
|
void ConfigureGraphics::ApplyConfiguration() {
|
|
|
@ -210,6 +220,7 @@ void ConfigureGraphics::ApplyConfiguration() {
|
|
|
|
if (Settings::values.anti_aliasing.UsingGlobal()) {
|
|
|
|
if (Settings::values.anti_aliasing.UsingGlobal()) {
|
|
|
|
Settings::values.anti_aliasing.SetValue(anti_aliasing);
|
|
|
|
Settings::values.anti_aliasing.SetValue(anti_aliasing);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Settings::values.fsr_sharpening_slider.SetValue(ui->fsr_sharpening_slider->value());
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (ui->resolution_combobox->currentIndex() == ConfigurationShared::USE_GLOBAL_INDEX) {
|
|
|
|
if (ui->resolution_combobox->currentIndex() == ConfigurationShared::USE_GLOBAL_INDEX) {
|
|
|
|
Settings::values.resolution_setup.SetGlobal(true);
|
|
|
|
Settings::values.resolution_setup.SetGlobal(true);
|
|
|
@ -380,6 +391,7 @@ void ConfigureGraphics::SetupPerGameUI() {
|
|
|
|
ui->aspect_ratio_combobox->setEnabled(Settings::values.aspect_ratio.UsingGlobal());
|
|
|
|
ui->aspect_ratio_combobox->setEnabled(Settings::values.aspect_ratio.UsingGlobal());
|
|
|
|
ui->resolution_combobox->setEnabled(Settings::values.resolution_setup.UsingGlobal());
|
|
|
|
ui->resolution_combobox->setEnabled(Settings::values.resolution_setup.UsingGlobal());
|
|
|
|
ui->scaling_filter_combobox->setEnabled(Settings::values.scaling_filter.UsingGlobal());
|
|
|
|
ui->scaling_filter_combobox->setEnabled(Settings::values.scaling_filter.UsingGlobal());
|
|
|
|
|
|
|
|
ui->fsr_sharpening_slider->setEnabled(Settings::values.fsr_sharpening_slider.UsingGlobal());
|
|
|
|
ui->anti_aliasing_combobox->setEnabled(Settings::values.anti_aliasing.UsingGlobal());
|
|
|
|
ui->anti_aliasing_combobox->setEnabled(Settings::values.anti_aliasing.UsingGlobal());
|
|
|
|
ui->use_asynchronous_gpu_emulation->setEnabled(
|
|
|
|
ui->use_asynchronous_gpu_emulation->setEnabled(
|
|
|
|
Settings::values.use_asynchronous_gpu_emulation.UsingGlobal());
|
|
|
|
Settings::values.use_asynchronous_gpu_emulation.UsingGlobal());
|
|
|
|