mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-03-13 17:22:30 +01:00
rearrange switch cases to satisfy linux compiler
This commit is contained in:
parent
73b7ca7ace
commit
c22ac3367e
@ -300,14 +300,16 @@ FramebufferLayout SeparateWindowsLayout(u32 width, u32 height, bool is_secondary
|
||||
FramebufferLayout AndroidSecondaryLayout(u32 width, u32 height) {
|
||||
const Settings::SecondaryScreenLayout layout = Settings::values.secondary_screen_layout.GetValue();
|
||||
switch (layout) {
|
||||
case Settings::SecondaryScreenLayout::None:
|
||||
// this should never happen, but if it does, somehow, send the top screen
|
||||
case Settings::SecondaryScreenLayout::TopScreenOnly:
|
||||
return SingleFrameLayout(width, height, false, Settings::values.upright_screen.GetValue());
|
||||
|
||||
case Settings::SecondaryScreenLayout::BottomScreenOnly:
|
||||
return SingleFrameLayout(width, height, true, Settings::values.upright_screen.GetValue());
|
||||
case Settings::SecondaryScreenLayout::SideBySide:
|
||||
return LargeFrameLayout(width,height,false,Settings::values.upright_screen.GetValue(),1.0f,Settings::SmallScreenPosition::MiddleRight);
|
||||
case Settings::SecondaryScreenLayout::None:
|
||||
// this should never happen, but if it does, somehow, send the top screen
|
||||
case Settings::SecondaryScreenLayout::TopScreenOnly:
|
||||
default:
|
||||
return SingleFrameLayout(width, height, false, Settings::values.upright_screen.GetValue());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user