mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-27 12:40:25 +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:
commit
82bc6674dc
1 changed files with 5 additions and 0 deletions
|
@ -246,6 +246,11 @@ bool Launcher::SettingsPage::loadSettings()
|
||||||
int shadowResIndex = shadowResolutionComboBox->findText(QString::number(shadowRes));
|
int shadowResIndex = shadowResolutionComboBox->findText(QString::number(shadowRes));
|
||||||
if (shadowResIndex != -1)
|
if (shadowResIndex != -1)
|
||||||
shadowResolutionComboBox->setCurrentIndex(shadowResIndex);
|
shadowResolutionComboBox->setCurrentIndex(shadowResIndex);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
shadowResolutionComboBox->addItem(QString::number(shadowRes));
|
||||||
|
shadowResolutionComboBox->setCurrentIndex(shadowResolutionComboBox->count() - 1);
|
||||||
|
}
|
||||||
|
|
||||||
connect(shadowDistanceCheckBox, &QCheckBox::toggled, this, &SettingsPage::slotShadowDistLimitToggled);
|
connect(shadowDistanceCheckBox, &QCheckBox::toggled, this, &SettingsPage::slotShadowDistLimitToggled);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue