summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-08-30 03:29:58 +0200
committerbunnei <bunneidev@gmail.com>2016-08-30 03:42:33 +0200
commit74842116b287165d1db959437a439f13a17c724c (patch)
tree4e36bd34db2074b2ee4a6549f3eb26160398563c /src
parentqt: Recreate GL context on startup to support changing V-Sync. (diff)
downloadyuzu-74842116b287165d1db959437a439f13a17c724c.tar
yuzu-74842116b287165d1db959437a439f13a17c724c.tar.gz
yuzu-74842116b287165d1db959437a439f13a17c724c.tar.bz2
yuzu-74842116b287165d1db959437a439f13a17c724c.tar.lz
yuzu-74842116b287165d1db959437a439f13a17c724c.tar.xz
yuzu-74842116b287165d1db959437a439f13a17c724c.tar.zst
yuzu-74842116b287165d1db959437a439f13a17c724c.zip
Diffstat (limited to '')
-rw-r--r--src/citra_qt/configure_graphics.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/citra_qt/configure_graphics.cpp b/src/citra_qt/configure_graphics.cpp
index 22def58d4..9c3ae1cbd 100644
--- a/src/citra_qt/configure_graphics.cpp
+++ b/src/citra_qt/configure_graphics.cpp
@@ -6,6 +6,7 @@
#include "ui_configure_graphics.h"
#include "core/settings.h"
+#include "core/system.h"
ConfigureGraphics::ConfigureGraphics(QWidget *parent) :
QWidget(parent),
@@ -13,6 +14,8 @@ ConfigureGraphics::ConfigureGraphics(QWidget *parent) :
{
ui->setupUi(this);
this->setConfiguration();
+
+ ui->toogle_vsync->setEnabled(!System::IsPoweredOn());
}
ConfigureGraphics::~ConfigureGraphics() {
@@ -28,6 +31,7 @@ void ConfigureGraphics::setConfiguration() {
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::values.use_vsync = ui->toogle_vsync->isChecked();
Settings::Apply();
}