summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-05-17 19:01:41 +0200
committerGitHub <noreply@github.com>2019-05-17 19:01:41 +0200
commit1975d32f2db455135850975e705f19f35b53bd6a (patch)
treeb7866e44924cd31d870ff0b84d5fb85ffa620ddb
parentMerge pull request #2462 from lioncash/video-mm (diff)
parentqt/configure_graphics: Shadow options at runtime (diff)
downloadyuzu-1975d32f2db455135850975e705f19f35b53bd6a.tar
yuzu-1975d32f2db455135850975e705f19f35b53bd6a.tar.gz
yuzu-1975d32f2db455135850975e705f19f35b53bd6a.tar.bz2
yuzu-1975d32f2db455135850975e705f19f35b53bd6a.tar.lz
yuzu-1975d32f2db455135850975e705f19f35b53bd6a.tar.xz
yuzu-1975d32f2db455135850975e705f19f35b53bd6a.tar.zst
yuzu-1975d32f2db455135850975e705f19f35b53bd6a.zip
-rw-r--r--src/yuzu/configuration/configure_graphics.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp
index c299c0b5b..08ea41b0f 100644
--- a/src/yuzu/configuration/configure_graphics.cpp
+++ b/src/yuzu/configuration/configure_graphics.cpp
@@ -69,16 +69,20 @@ ConfigureGraphics::ConfigureGraphics(QWidget* parent)
ConfigureGraphics::~ConfigureGraphics() = default;
void ConfigureGraphics::setConfiguration() {
+ const bool runtime_lock = !Core::System::GetInstance().IsPoweredOn();
+
ui->resolution_factor_combobox->setCurrentIndex(
static_cast<int>(FromResolutionFactor(Settings::values.resolution_factor)));
ui->toggle_frame_limit->setChecked(Settings::values.use_frame_limit);
ui->frame_limit->setValue(Settings::values.frame_limit);
+ ui->use_compatibility_profile->setEnabled(runtime_lock);
ui->use_compatibility_profile->setChecked(Settings::values.use_compatibility_profile);
+ ui->use_disk_shader_cache->setEnabled(runtime_lock);
ui->use_disk_shader_cache->setChecked(Settings::values.use_disk_shader_cache);
ui->use_accurate_gpu_emulation->setChecked(Settings::values.use_accurate_gpu_emulation);
- ui->use_asynchronous_gpu_emulation->setEnabled(!Core::System::GetInstance().IsPoweredOn());
+ ui->use_asynchronous_gpu_emulation->setEnabled(runtime_lock);
ui->use_asynchronous_gpu_emulation->setChecked(Settings::values.use_asynchronous_gpu_emulation);
- ui->force_30fps_mode->setEnabled(!Core::System::GetInstance().IsPoweredOn());
+ ui->force_30fps_mode->setEnabled(runtime_lock);
ui->force_30fps_mode->setChecked(Settings::values.force_30fps_mode);
UpdateBackgroundColorButton(QColor::fromRgbF(Settings::values.bg_red, Settings::values.bg_green,
Settings::values.bg_blue));