diff options
author | bunnei <bunneidev@gmail.com> | 2017-01-08 18:25:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-08 18:25:12 +0100 |
commit | 9fc8ead8424a1e9fa46ab9b15777416b256a77d1 (patch) | |
tree | 3757cf233b6b57155c287c7f968cad5e41761a05 /src/citra_qt/config.cpp | |
parent | Merge pull request #1951 from wwylele/motion-sensor (diff) | |
parent | config: Add option for specifying screen resolution scale factor. (diff) | |
download | yuzu-9fc8ead8424a1e9fa46ab9b15777416b256a77d1.tar yuzu-9fc8ead8424a1e9fa46ab9b15777416b256a77d1.tar.gz yuzu-9fc8ead8424a1e9fa46ab9b15777416b256a77d1.tar.bz2 yuzu-9fc8ead8424a1e9fa46ab9b15777416b256a77d1.tar.lz yuzu-9fc8ead8424a1e9fa46ab9b15777416b256a77d1.tar.xz yuzu-9fc8ead8424a1e9fa46ab9b15777416b256a77d1.tar.zst yuzu-9fc8ead8424a1e9fa46ab9b15777416b256a77d1.zip |
Diffstat (limited to 'src/citra_qt/config.cpp')
-rw-r--r-- | src/citra_qt/config.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/citra_qt/config.cpp b/src/citra_qt/config.cpp index c904c4b00..8021667d0 100644 --- a/src/citra_qt/config.cpp +++ b/src/citra_qt/config.cpp @@ -44,8 +44,7 @@ void Config::ReadValues() { qt_config->beginGroup("Renderer"); Settings::values.use_hw_renderer = qt_config->value("use_hw_renderer", true).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.resolution_factor = qt_config->value("resolution_factor", 1.0).toFloat(); Settings::values.use_vsync = qt_config->value("use_vsync", false).toBool(); Settings::values.toggle_framelimit = qt_config->value("toggle_framelimit", true).toBool(); @@ -152,7 +151,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); + qt_config->setValue("resolution_factor", (double)Settings::values.resolution_factor); qt_config->setValue("use_vsync", Settings::values.use_vsync); qt_config->setValue("toggle_framelimit", Settings::values.toggle_framelimit); |