summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2021-04-16 21:01:24 +0200
committer hap <happppp@users.noreply.github.com>2021-04-16 21:01:24 +0200
commit5fb639a95cd1fa03d1a787eebdac3c1cf33118df (patch)
tree0f35b63d9eae4eed06446b6289ef1c02bc12b2b9
parent83a1ce9bac2603b1b48e04b2ac16f3c045d78da2 (diff)
Revert "ui: hide child nodes (collapse menu) if a .lay collection is disabled"
This reverts commit 0e8a9b2f92566ff201fe8efbfff079f420b656da.
-rw-r--r--src/frontend/mame/ui/videoopt.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/frontend/mame/ui/videoopt.cpp b/src/frontend/mame/ui/videoopt.cpp
index 20e598d1b4d..8d5ccbca88c 100644
--- a/src/frontend/mame/ui/videoopt.cpp
+++ b/src/frontend/mame/ui/videoopt.cpp
@@ -162,8 +162,7 @@ void menu_video_options::populate(float &customtop, float &custombottom)
bool eclipsed(false);
for (auto it = toggles.begin(); !eclipsed && (toggle != it); ++it)
eclipsed = ((current_mask & it->mask()) != it->mask()) && ((toggle_mask & it->mask()) == it->mask());
- if (!eclipsed)
- item_append_on_off(toggle->name(), enabled, 0U, reinterpret_cast<void *>(ITEM_TOGGLE_FIRST + ref));
+ item_append_on_off(toggle->name(), enabled, eclipsed ? (FLAG_INVERT | FLAG_DISABLE) : 0U, reinterpret_cast<void *>(ITEM_TOGGLE_FIRST + ref));
}
item_append(menu_item_type::SEPARATOR);
}