aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/qt_sdl/main.cpp')
-rw-r--r--src/frontend/qt_sdl/main.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp
index 4d30dc8..c31e78a 100644
--- a/src/frontend/qt_sdl/main.cpp
+++ b/src/frontend/qt_sdl/main.cpp
@@ -2777,6 +2777,22 @@ void MainWindow::onChangeScreenSwap(bool checked)
{
Config::ScreenSwap = checked?1:0;
+ // Swap between top and bottom screen when displaying one screen.
+ if (Config::ScreenSizing == 4)
+ {
+ // Bottom Screen.
+ Config::ScreenSizing = 5;
+ actScreenSizing[4]->setChecked(false);
+ actScreenSizing[Config::ScreenSizing]->setChecked(true);
+ }
+ else if (Config::ScreenSizing == 5)
+ {
+ // Top Screen.
+ Config::ScreenSizing = 4;
+ actScreenSizing[5]->setChecked(false);
+ actScreenSizing[Config::ScreenSizing]->setChecked(true);
+ }
+
emit screenLayoutChange();
}