summaryrefslogtreecommitdiffstats
path: root/src/core/settings.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-11-16 01:57:08 +0100
committerGitHub <noreply@github.com>2016-11-16 01:57:08 +0100
commit5a31552764dc8970253e642f4b829a8b785375c6 (patch)
tree8186a82c37ae04c17bd1d6250c524fc097f9671c /src/core/settings.cpp
parentMerge pull request #2171 from jroweboy/fix-mac-build (diff)
parentRound the rectangle size to prevent float to int casting issues (diff)
downloadyuzu-5a31552764dc8970253e642f4b829a8b785375c6.tar
yuzu-5a31552764dc8970253e642f4b829a8b785375c6.tar.gz
yuzu-5a31552764dc8970253e642f4b829a8b785375c6.tar.bz2
yuzu-5a31552764dc8970253e642f4b829a8b785375c6.tar.lz
yuzu-5a31552764dc8970253e642f4b829a8b785375c6.tar.xz
yuzu-5a31552764dc8970253e642f4b829a8b785375c6.tar.zst
yuzu-5a31552764dc8970253e642f4b829a8b785375c6.zip
Diffstat (limited to 'src/core/settings.cpp')
-rw-r--r--src/core/settings.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/settings.cpp b/src/core/settings.cpp
index 4a0969b00..05f41f798 100644
--- a/src/core/settings.cpp
+++ b/src/core/settings.cpp
@@ -7,6 +7,8 @@
#include "settings.h"
#include "video_core/video_core.h"
+#include "common/emu_window.h"
+
namespace Settings {
Values values = {};
@@ -20,6 +22,11 @@ void Apply() {
VideoCore::g_shader_jit_enabled = values.use_shader_jit;
VideoCore::g_scaled_resolution_enabled = values.use_scaled_resolution;
+ if (VideoCore::g_emu_window) {
+ auto layout = VideoCore::g_emu_window->GetFramebufferLayout();
+ VideoCore::g_emu_window->UpdateCurrentFramebufferLayout(layout.width, layout.height);
+ }
+
AudioCore::SelectSink(values.sink_id);
AudioCore::EnableStretching(values.enable_audio_stretching);
}