summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/configure_graphics.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-08-25 04:15:38 +0200
committerbunnei <bunneidev@gmail.com>2016-08-30 03:42:29 +0200
commit2267f98941ca03e11fbc0ff71ee4b682f8e41933 (patch)
tree29a52864b9661bf391012d76ebd035482e3a19ba /src/citra_qt/configure_graphics.cpp
parentMerge pull request #2029 from JayFoxRox/appveyor-cache (diff)
downloadyuzu-2267f98941ca03e11fbc0ff71ee4b682f8e41933.tar
yuzu-2267f98941ca03e11fbc0ff71ee4b682f8e41933.tar.gz
yuzu-2267f98941ca03e11fbc0ff71ee4b682f8e41933.tar.bz2
yuzu-2267f98941ca03e11fbc0ff71ee4b682f8e41933.tar.lz
yuzu-2267f98941ca03e11fbc0ff71ee4b682f8e41933.tar.xz
yuzu-2267f98941ca03e11fbc0ff71ee4b682f8e41933.tar.zst
yuzu-2267f98941ca03e11fbc0ff71ee4b682f8e41933.zip
Diffstat (limited to 'src/citra_qt/configure_graphics.cpp')
-rw-r--r--src/citra_qt/configure_graphics.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/citra_qt/configure_graphics.cpp b/src/citra_qt/configure_graphics.cpp
new file mode 100644
index 000000000..85a120686
--- /dev/null
+++ b/src/citra_qt/configure_graphics.cpp
@@ -0,0 +1,32 @@
+// Copyright 2016 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#include "citra_qt/configure_graphics.h"
+#include "ui_configure_graphics.h"
+
+#include "core/settings.h"
+
+ConfigureGraphics::ConfigureGraphics(QWidget *parent) :
+ QWidget(parent),
+ ui(new Ui::ConfigureGraphics)
+{
+ ui->setupUi(this);
+ this->setConfiguration();
+}
+
+ConfigureGraphics::~ConfigureGraphics() {
+}
+
+void ConfigureGraphics::setConfiguration() {
+ 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 ConfigureGraphics::applyConfiguration() {
+ 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();
+}