GUI: Only show render mode options explicitly supported by the game

The render mode options are confusing, since they're just silently
ignored by games that don't support them. This way, games have to
explicitly declare which render options they support.
This commit is contained in:
Torbjörn Andersson 2022-08-21 14:38:10 +02:00 committed by Filippos Karapetis
parent ff3a48d7c1
commit eb51135a6f

View file

@ -1531,7 +1531,7 @@ void OptionsDialog::addGraphicControls(GuiObject *boss, const Common::String &pr
const Common::RenderModeDescription *rm = Common::g_renderModes;
for (; rm->code; ++rm) {
Common::String renderGuiOption = Common::renderMode2GUIO(rm->id);
if ((_domain == Common::ConfigManager::kApplicationDomain) || (_domain != Common::ConfigManager::kApplicationDomain && !renderingTypeDefined) || (_guioptions.contains(renderGuiOption)))
if ((_domain == Common::ConfigManager::kApplicationDomain) || (_domain != Common::ConfigManager::kApplicationDomain && renderingTypeDefined && _guioptions.contains(renderGuiOption)))
_renderModePopUp->appendEntry(_c(rm->description, context), rm->id);
}