mirror of
https://github.com/holub/mame
synced 2025-07-03 17:08:39 +03:00
ui/menu.cpp: Well, obviously (nw)
This commit is contained in:
parent
a560ee4ac8
commit
b226eb55a2
@ -412,7 +412,7 @@ void menu::item_append(std::string &&text, std::string &&subtext, uint32_t flags
|
|||||||
|
|
||||||
void menu::item_append_on_off(const std::string &text, bool state, uint32_t flags, void *ref, menu_item_type type)
|
void menu::item_append_on_off(const std::string &text, bool state, uint32_t flags, void *ref, menu_item_type type)
|
||||||
{
|
{
|
||||||
if (state & FLAG_DISABLE)
|
if (flags & FLAG_DISABLE)
|
||||||
ref = nullptr;
|
ref = nullptr;
|
||||||
else
|
else
|
||||||
flags |= state ? FLAG_LEFT_ARROW : FLAG_RIGHT_ARROW;
|
flags |= state ? FLAG_LEFT_ARROW : FLAG_RIGHT_ARROW;
|
||||||
|
Loading…
Reference in New Issue
Block a user