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:
parent
ff3a48d7c1
commit
eb51135a6f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue