summaryrefslogtreecommitdiff
path: root/src/core/settings.cpp
diff options
context:
space:
mode:
authorGravatar James Rowe2016-05-03 00:07:17 -0600
committerGravatar James Rowe2016-11-05 02:55:41 -0600
commit2b1654ad9bbd8af53f22434d350704a1a1d0a285 (patch)
tree0da3cc7a1c622c1a659f4b2a8c5c08984dabd5c3 /src/core/settings.cpp
parentUpdate CONTRIBUTING.md (diff)
downloadyuzu-2b1654ad9bbd8af53f22434d350704a1a1d0a285.tar.gz
yuzu-2b1654ad9bbd8af53f22434d350704a1a1d0a285.tar.xz
yuzu-2b1654ad9bbd8af53f22434d350704a1a1d0a285.zip
Support additional screen layouts.
Allows users to choose a single screen layout or a large screen layout. Adds a configuration option to change the prominent screen.
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 @@
7#include "settings.h" 7#include "settings.h"
8#include "video_core/video_core.h" 8#include "video_core/video_core.h"
9 9
10#include "common/emu_window.h"
11
10namespace Settings { 12namespace Settings {
11 13
12Values values = {}; 14Values values = {};
@@ -20,6 +22,11 @@ void Apply() {
20 VideoCore::g_shader_jit_enabled = values.use_shader_jit; 22 VideoCore::g_shader_jit_enabled = values.use_shader_jit;
21 VideoCore::g_scaled_resolution_enabled = values.use_scaled_resolution; 23 VideoCore::g_scaled_resolution_enabled = values.use_scaled_resolution;
22 24
25 if (VideoCore::g_emu_window) {
26 auto layout = VideoCore::g_emu_window->GetFramebufferLayout();
27 VideoCore::g_emu_window->UpdateCurrentFramebufferLayout(layout.width, layout.height);
28 }
29
23 AudioCore::SelectSink(values.sink_id); 30 AudioCore::SelectSink(values.sink_id);
24 AudioCore::EnableStretching(values.enable_audio_stretching); 31 AudioCore::EnableStretching(values.enable_audio_stretching);
25} 32}