mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-06 02:33:44 -04:00
Add a new Secondary Display Layout option on android that makes the secondary display honor swap button
# Conflicts: # src/core/frontend/framebuffer_layout.cpp
This commit is contained in:
parent
a28a0c3f6d
commit
f46596a9d8
2 changed files with 2 additions and 1 deletions
|
|
@ -44,7 +44,6 @@
|
|||
<item>@string/emulation_screen_layout_original</item>
|
||||
<item>@string/emulation_screen_layout_hybrid</item>
|
||||
<item>@string/emulation_screen_layout_largescreen</item>
|
||||
|
||||
</string-array>
|
||||
|
||||
<integer-array name="portraitLayoutValues">
|
||||
|
|
|
|||
|
|
@ -305,6 +305,8 @@ FramebufferLayout AndroidSecondaryLayout(u32 width, u32 height) {
|
|||
const Settings::SecondaryDisplayLayout layout =
|
||||
Settings::values.secondary_display_layout.GetValue();
|
||||
switch (layout) {
|
||||
case Settings::SecondaryDisplayLayout::ReversePrimary:
|
||||
return SingleFrameLayout(width,height,! Settings::values.swap_screen,Settings::values.upright_screen.GetValue());
|
||||
case Settings::SecondaryDisplayLayout::TopScreenOnly:
|
||||
return SingleFrameLayout(width, height, false, Settings::values.upright_screen.GetValue());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue