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
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
m_main_window->show();
return a.exec();
}
}

View File

@ -300,8 +300,8 @@ void SettingsDialog::LoadValuesFromConfig() {
ui->discordRPCCheckbox->setChecked(
toml::find_or<bool>(data, "General", "enableDiscordRPC", true));
ui->fullscreenCheckBox->setChecked(toml::find_or<bool>(data, "General", "Fullscreen", false));
ui->fullscreenModeComboBox->setCurrentText(
QString::fromStdString(toml::find_or<std::string>(data, "General", "FullscreenMode", "Borderless")));
ui->fullscreenModeComboBox->setCurrentText(QString::fromStdString(
toml::find_or<std::string>(data, "General", "FullscreenMode", "Borderless")));
ui->separateUpdatesCheckBox->setChecked(
toml::find_or<bool>(data, "General", "separateUpdateEnabled", 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;
}
if (!error) {
SDL_SetWindowFullscreenMode(window, Config::getFullscreenMode() == "True" ? displayMode : NULL);
SDL_SetWindowFullscreenMode(window,
Config::getFullscreenMode() == "True" ? displayMode : NULL);
}
SDL_SetWindowFullscreen(window, Config::getIsFullscreen());