1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-06 07:15:36 +00:00

Merge branch 'that-one-issue-sophie-keeps-nagging-about' into 'master'

Don't throw away user-provided shadow map resolutions

Closes #7891

See merge request OpenMW/openmw!3965
This commit is contained in:
psi29a 2024-03-21 07:45:26 +00:00
commit 82bc6674dc

View file

@ -246,6 +246,11 @@ bool Launcher::SettingsPage::loadSettings()
int shadowResIndex = shadowResolutionComboBox->findText(QString::number(shadowRes));
if (shadowResIndex != -1)
shadowResolutionComboBox->setCurrentIndex(shadowResIndex);
else
{
shadowResolutionComboBox->addItem(QString::number(shadowRes));
shadowResolutionComboBox->setCurrentIndex(shadowResolutionComboBox->count() - 1);
}
connect(shadowDistanceCheckBox, &QCheckBox::toggled, this, &SettingsPage::slotShadowDistLimitToggled);