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.
This commit is contained in:
parent
1f70365faa
commit
2b1654ad9b
16 changed files with 522 additions and 132 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue