This commit is contained in:
kalaposfos13 2025-01-02 11:30:41 +01:00
parent 0f336f6782
commit c336c75ae5
4 changed files with 6 additions and 5 deletions

View File

@ -141,4 +141,4 @@ void setDefaultValues();
// settings // settings
u32 GetLanguage(); u32 GetLanguage();
}; // namespace Config }; // namespace Config

View File

@ -190,4 +190,4 @@ int main(int argc, char* argv[]) {
// Show the main window and run the Qt application // Show the main window and run the Qt application
m_main_window->show(); m_main_window->show();
return a.exec(); return a.exec();
} }

View File

@ -300,8 +300,8 @@ void SettingsDialog::LoadValuesFromConfig() {
ui->discordRPCCheckbox->setChecked( ui->discordRPCCheckbox->setChecked(
toml::find_or<bool>(data, "General", "enableDiscordRPC", true)); toml::find_or<bool>(data, "General", "enableDiscordRPC", true));
ui->fullscreenCheckBox->setChecked(toml::find_or<bool>(data, "General", "Fullscreen", false)); ui->fullscreenCheckBox->setChecked(toml::find_or<bool>(data, "General", "Fullscreen", false));
ui->fullscreenModeComboBox->setCurrentText( ui->fullscreenModeComboBox->setCurrentText(QString::fromStdString(
QString::fromStdString(toml::find_or<std::string>(data, "General", "FullscreenMode", "Borderless"))); toml::find_or<std::string>(data, "General", "FullscreenMode", "Borderless")));
ui->separateUpdatesCheckBox->setChecked( ui->separateUpdatesCheckBox->setChecked(
toml::find_or<bool>(data, "General", "separateUpdateEnabled", false)); toml::find_or<bool>(data, "General", "separateUpdateEnabled", false));
ui->showSplashCheckBox->setChecked(toml::find_or<bool>(data, "General", "showSplash", false)); ui->showSplashCheckBox->setChecked(toml::find_or<bool>(data, "General", "showSplash", false));

View File

@ -104,7 +104,8 @@ WindowSDL::WindowSDL(s32 width_, s32 height_, Input::GameController* controller_
error = true; error = true;
} }
if (!error) { if (!error) {
SDL_SetWindowFullscreenMode(window, Config::getFullscreenMode() == "True" ? displayMode : NULL); SDL_SetWindowFullscreenMode(window,
Config::getFullscreenMode() == "True" ? displayMode : NULL);
} }
SDL_SetWindowFullscreen(window, Config::getIsFullscreen()); SDL_SetWindowFullscreen(window, Config::getIsFullscreen());