diff options
-rw-r--r-- | src/frontend/mame/ui/videoopt.cpp | 3 |
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); } |