aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl
diff options
context:
space:
mode:
authorZackWeinstein <32457340+ZackWeinstein@users.noreply.github.com>2022-02-25 09:58:31 -0500
committerGitHub <noreply@github.com>2022-02-25 15:58:31 +0100
commite3ad78e84f3ca56da12360756c736a5b69bacf42 (patch)
treeebb351f912b722b33e448c2c78377db38de76275 /src/frontend/qt_sdl
parentbb67e186dfcc9739c54396bdf5d8c512db3a94ec (diff)
Allowing Swap screens hotkey to swap between displaying only top screen and only bottom screen. (#1283)
Diffstat (limited to 'src/frontend/qt_sdl')
-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();
}