add true fullscreen mode

This commit is contained in:
Jarred Wilson 2025-02-20 18:22:22 -06:00
parent cdf4bea8f3
commit 986952883e
2 changed files with 8 additions and 3 deletions

View File

@ -78,7 +78,8 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices,
channelMap = {{tr("Release"), "Release"}, {tr("Nightly"), "Nightly"}}; channelMap = {{tr("Release"), "Release"}, {tr("Nightly"), "Nightly"}};
logTypeMap = {{tr("async"), "async"}, {tr("sync"), "sync"}}; logTypeMap = {{tr("async"), "async"}, {tr("sync"), "sync"}};
screenModeMap = {{tr("Fullscreen (Borderless)"), "Fullscreen (Borderless)"}, screenModeMap = {{tr("Fullscreen (Borderless)"), "Fullscreen (Borderless)"},
{tr("Windowed"), "Windowed"}}; {tr("Windowed"), "Windowed"},
{tr("Fullscreen"), "Fullscreen"}};
chooseHomeTabMap = {{tr("General"), "General"}, {tr("GUI"), "GUI"}, chooseHomeTabMap = {{tr("General"), "General"}, {tr("GUI"), "GUI"},
{tr("Graphics"), "Graphics"}, {tr("User"), "User"}, {tr("Graphics"), "Graphics"}, {tr("User"), "User"},
{tr("Input"), "Input"}, {tr("Paths"), "Paths"}, {tr("Input"), "Input"}, {tr("Paths"), "Paths"},
@ -647,8 +648,7 @@ void SettingsDialog::UpdateSettings() {
const QVector<std::string> TouchPadIndex = {"left", "center", "right", "none"}; const QVector<std::string> TouchPadIndex = {"left", "center", "right", "none"};
Config::setBackButtonBehavior(TouchPadIndex[ui->backButtonBehaviorComboBox->currentIndex()]); Config::setBackButtonBehavior(TouchPadIndex[ui->backButtonBehaviorComboBox->currentIndex()]);
Config::setIsFullscreen(ui->displayModeComboBox->currentText().toStdString() == Config::setIsFullscreen(ui->displayModeComboBox->currentText().toStdString() == "Fullscreen");
"Fullscreen (Borderless)");
Config::setFullscreenMode( Config::setFullscreenMode(
screenModeMap.value(ui->displayModeComboBox->currentText()).toStdString()); screenModeMap.value(ui->displayModeComboBox->currentText()).toStdString());
Config::setIsMotionControlsEnabled(ui->motionControlsCheckBox->isChecked()); Config::setIsMotionControlsEnabled(ui->motionControlsCheckBox->isChecked());

View File

@ -994,6 +994,11 @@
<string>Windowed</string> <string>Windowed</string>
</property> </property>
</item> </item>
<item>
<property name="text">
<string>Fullscreen</string>
</property>
</item>
<item> <item>
<property name="text"> <property name="text">
<string>Fullscreen (Borderless)</string> <string>Fullscreen (Borderless)</string>