mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-04-07 18:01:26 -06: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
6cc3137633
commit
2531740920
@ -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…
Reference in New Issue
Block a user