GUI: rebuild if _aspectCheckbox is expected

Fixes or works around https://bugs.scummvm.org/ticket/15243 . This may
not be appropriate, but it avoids a segfault (nil _aspectCheckbox) for
me when I've specified `--disable-aspect` and switch from SDL to
OpenGL, anyway.
This commit is contained in:
scummvmuser 2024-07-03 16:59:56 -04:00 committed by Filippos Karapetis
parent c0667b92b9
commit 43f88c7d01

View File

@ -2033,6 +2033,8 @@ void OptionsDialog::setupGraphicsTab() {
rebuild();
} else if (!_stretchPopUp && g_system->hasFeature(OSystem::kFeatureStretchMode)) {
rebuild();
} else if (!_aspectCheckbox && g_system->hasFeature(OSystem::kFeatureAspectRatioCorrection)) {
rebuild();
}
setGraphicSettingsState(_enableGraphicSettings);
}