mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-01 03:19:49 -06:00
@ -647,7 +647,8 @@ void ScreenHandler::screenSetupLayout(int w, int h)
|
||||
Config::ScreenRotation,
|
||||
sizing,
|
||||
Config::ScreenGap,
|
||||
Config::IntegerScaling != 0);
|
||||
Config::IntegerScaling != 0,
|
||||
Config::ScreenSwap != 0);
|
||||
|
||||
Frontend::GetScreenTransforms(screenMatrix[0], screenMatrix[1]);
|
||||
}
|
||||
@ -1232,6 +1233,12 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent)
|
||||
}
|
||||
|
||||
connect(grpScreenLayout, &QActionGroup::triggered, this, &MainWindow::onChangeScreenLayout);
|
||||
|
||||
submenu->addSeparator();
|
||||
|
||||
actScreenSwap = submenu->addAction("Swap screens");
|
||||
actScreenSwap->setCheckable(true);
|
||||
connect(actScreenSwap, &QAction::triggered, this, &MainWindow::onChangeScreenSwap);
|
||||
}
|
||||
{
|
||||
QMenu* submenu = menu->addMenu("Screen sizing");
|
||||
@ -1315,6 +1322,8 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent)
|
||||
actScreenSizing[Config::ScreenSizing]->setChecked(true);
|
||||
actIntegerScaling->setChecked(Config::IntegerScaling != 0);
|
||||
|
||||
actScreenSwap->setChecked(Config::ScreenSwap != 0);
|
||||
|
||||
actScreenFiltering->setChecked(Config::ScreenFilter != 0);
|
||||
actShowOSD->setChecked(Config::ShowOSD != 0);
|
||||
|
||||
@ -2049,6 +2058,13 @@ void MainWindow::onChangeScreenLayout(QAction* act)
|
||||
emit screenLayoutChange();
|
||||
}
|
||||
|
||||
void MainWindow::onChangeScreenSwap(bool checked)
|
||||
{
|
||||
Config::ScreenSwap = checked?1:0;
|
||||
|
||||
emit screenLayoutChange();
|
||||
}
|
||||
|
||||
void MainWindow::onChangeScreenSizing(QAction* act)
|
||||
{
|
||||
int sizing = act->data().toInt();
|
||||
|
Reference in New Issue
Block a user