diff options
author | tfarley <tfarleygithub@gmail.com> | 2016-04-17 00:51:49 +0200 |
---|---|---|
committer | tfarley <tfarleygithub@gmail.com> | 2016-04-21 23:27:48 +0200 |
commit | e46d086189908ce9b9d7d68e3e4453396e48c7cc (patch) | |
tree | 69a8c70d12d088fa59f49891c91de6f16a1d4ca9 /src/citra_qt | |
parent | Update to ext-boost with interval_map (diff) | |
download | yuzu-e46d086189908ce9b9d7d68e3e4453396e48c7cc.tar yuzu-e46d086189908ce9b9d7d68e3e4453396e48c7cc.tar.gz yuzu-e46d086189908ce9b9d7d68e3e4453396e48c7cc.tar.bz2 yuzu-e46d086189908ce9b9d7d68e3e4453396e48c7cc.tar.lz yuzu-e46d086189908ce9b9d7d68e3e4453396e48c7cc.tar.xz yuzu-e46d086189908ce9b9d7d68e3e4453396e48c7cc.tar.zst yuzu-e46d086189908ce9b9d7d68e3e4453396e48c7cc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/citra_qt/config.cpp | 2 | ||||
-rw-r--r-- | src/citra_qt/configure_general.cpp | 2 | ||||
-rw-r--r-- | src/citra_qt/configure_general.ui | 7 |
3 files changed, 11 insertions, 0 deletions
diff --git a/src/citra_qt/config.cpp b/src/citra_qt/config.cpp index e363be38a..7dc61fe40 100644 --- a/src/citra_qt/config.cpp +++ b/src/citra_qt/config.cpp @@ -45,6 +45,7 @@ void Config::ReadValues() { qt_config->beginGroup("Renderer"); Settings::values.use_hw_renderer = qt_config->value("use_hw_renderer", false).toBool(); Settings::values.use_shader_jit = qt_config->value("use_shader_jit", true).toBool(); + Settings::values.use_scaled_resolution = qt_config->value("use_scaled_resolution", false).toBool(); Settings::values.bg_red = qt_config->value("bg_red", 1.0).toFloat(); Settings::values.bg_green = qt_config->value("bg_green", 1.0).toFloat(); @@ -129,6 +130,7 @@ void Config::SaveValues() { qt_config->beginGroup("Renderer"); qt_config->setValue("use_hw_renderer", Settings::values.use_hw_renderer); qt_config->setValue("use_shader_jit", Settings::values.use_shader_jit); + qt_config->setValue("use_scaled_resolution", Settings::values.use_scaled_resolution); // Cast to double because Qt's written float values are not human-readable qt_config->setValue("bg_red", (double)Settings::values.bg_red); diff --git a/src/citra_qt/configure_general.cpp b/src/citra_qt/configure_general.cpp index a27d0d26c..62648e665 100644 --- a/src/citra_qt/configure_general.cpp +++ b/src/citra_qt/configure_general.cpp @@ -25,6 +25,7 @@ void ConfigureGeneral::setConfiguration() { ui->region_combobox->setCurrentIndex(Settings::values.region_value); ui->toogle_hw_renderer->setChecked(Settings::values.use_hw_renderer); ui->toogle_shader_jit->setChecked(Settings::values.use_shader_jit); + ui->toogle_scaled_resolution->setChecked(Settings::values.use_scaled_resolution); } void ConfigureGeneral::applyConfiguration() { @@ -33,5 +34,6 @@ void ConfigureGeneral::applyConfiguration() { Settings::values.region_value = ui->region_combobox->currentIndex(); Settings::values.use_hw_renderer = ui->toogle_hw_renderer->isChecked(); Settings::values.use_shader_jit = ui->toogle_shader_jit->isChecked(); + Settings::values.use_scaled_resolution = ui->toogle_scaled_resolution->isChecked(); Settings::Apply(); } diff --git a/src/citra_qt/configure_general.ui b/src/citra_qt/configure_general.ui index 47184c5c6..5eb309793 100644 --- a/src/citra_qt/configure_general.ui +++ b/src/citra_qt/configure_general.ui @@ -128,6 +128,13 @@ </property> </widget> </item> + <item> + <widget class="QCheckBox" name="toogle_scaled_resolution"> + <property name="text"> + <string>Enable scaled resolution</string> + </property> + </widget> + </item> </layout> </item> </layout> |