|
|
@ -79,7 +79,8 @@ void ConfigureGraphics::SetConfiguration() {
|
|
|
|
|
|
|
|
|
|
|
|
if (Settings::IsConfiguringGlobal()) {
|
|
|
|
if (Settings::IsConfiguringGlobal()) {
|
|
|
|
ui->api->setCurrentIndex(static_cast<int>(Settings::values.renderer_backend.GetValue()));
|
|
|
|
ui->api->setCurrentIndex(static_cast<int>(Settings::values.renderer_backend.GetValue()));
|
|
|
|
ui->fullscreen_mode_combobox->setCurrentIndex(Settings::values.fullscreen_mode.GetValue());
|
|
|
|
ui->fullscreen_mode_combobox->setCurrentIndex(
|
|
|
|
|
|
|
|
static_cast<int>(Settings::values.fullscreen_mode.GetValue()));
|
|
|
|
ui->aspect_ratio_combobox->setCurrentIndex(Settings::values.aspect_ratio.GetValue());
|
|
|
|
ui->aspect_ratio_combobox->setCurrentIndex(Settings::values.aspect_ratio.GetValue());
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
ConfigurationShared::SetPerGameSetting(ui->api, &Settings::values.renderer_backend);
|
|
|
|
ConfigurationShared::SetPerGameSetting(ui->api, &Settings::values.renderer_backend);
|
|
|
@ -282,8 +283,9 @@ void ConfigureGraphics::SetupPerGameUI() {
|
|
|
|
|
|
|
|
|
|
|
|
ConfigurationShared::SetColoredComboBox(ui->aspect_ratio_combobox, ui->ar_label,
|
|
|
|
ConfigurationShared::SetColoredComboBox(ui->aspect_ratio_combobox, ui->ar_label,
|
|
|
|
Settings::values.aspect_ratio.GetValue(true));
|
|
|
|
Settings::values.aspect_ratio.GetValue(true));
|
|
|
|
ConfigurationShared::SetColoredComboBox(ui->fullscreen_mode_combobox, ui->fullscreen_mode_label,
|
|
|
|
ConfigurationShared::SetColoredComboBox(
|
|
|
|
Settings::values.fullscreen_mode.GetValue(true));
|
|
|
|
ui->fullscreen_mode_combobox, ui->fullscreen_mode_label,
|
|
|
|
|
|
|
|
static_cast<int>(Settings::values.fullscreen_mode.GetValue(true)));
|
|
|
|
ConfigurationShared::InsertGlobalItem(
|
|
|
|
ConfigurationShared::InsertGlobalItem(
|
|
|
|
ui->api, static_cast<int>(Settings::values.renderer_backend.GetValue(true)));
|
|
|
|
ui->api, static_cast<int>(Settings::values.renderer_backend.GetValue(true)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|