diff options
author | tfarley <tfarleygithub@gmail.com> | 2015-05-03 21:34:48 +0200 |
---|---|---|
committer | tfarley <tfarleygithub@gmail.com> | 2015-05-22 23:37:55 +0200 |
commit | 6d995b1ff654483f830b6c285629545263393d7e (patch) | |
tree | 8c2a9e21a61f0ded0d97b97e0c579633e4f38b06 /src/citra_qt/config.cpp | |
parent | Merge pull request #798 from yuriks/y2r-bw (diff) | |
download | yuzu-6d995b1ff654483f830b6c285629545263393d7e.tar yuzu-6d995b1ff654483f830b6c285629545263393d7e.tar.gz yuzu-6d995b1ff654483f830b6c285629545263393d7e.tar.bz2 yuzu-6d995b1ff654483f830b6c285629545263393d7e.tar.lz yuzu-6d995b1ff654483f830b6c285629545263393d7e.tar.xz yuzu-6d995b1ff654483f830b6c285629545263393d7e.tar.zst yuzu-6d995b1ff654483f830b6c285629545263393d7e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/citra_qt/config.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/citra_qt/config.cpp b/src/citra_qt/config.cpp index fb85121b3..460f4ec07 100644 --- a/src/citra_qt/config.cpp +++ b/src/citra_qt/config.cpp @@ -54,6 +54,8 @@ void Config::ReadValues() { qt_config->endGroup(); qt_config->beginGroup("Renderer"); + Settings::values.use_hw_renderer = qt_config->value("use_hw_renderer", 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(); Settings::values.bg_blue = qt_config->value("bg_blue", 1.0).toFloat(); @@ -105,6 +107,8 @@ void Config::SaveValues() { qt_config->endGroup(); qt_config->beginGroup("Renderer"); + qt_config->setValue("use_hw_renderer", Settings::values.use_hw_renderer); + // Cast to double because Qt's written float values are not human-readable qt_config->setValue("bg_red", (double)Settings::values.bg_red); qt_config->setValue("bg_green", (double)Settings::values.bg_green); |