void ui_menu_colors_ui::handle() { bool changed = false; // process the menu const ui_menu_event *m_event = process(0); if (m_event != nullptr && m_event->itemref != nullptr && m_event->iptkey == IPT_UI_SELECT) { if ((FPTR)m_event->itemref != MUI_RESTORE) ui_menu::stack_push(global_alloc_clear<ui_menu_rgb_ui>(machine(), container, &m_color_table[(FPTR)m_event->itemref].color, item[selected].text)); else { changed = true; restore_colors(); } } if (changed) reset(UI_MENU_RESET_REMEMBER_REF); }
void gnt_uninit_colors() { if (can_use_custom_color()) restore_colors(); }