예제 #1
0
파일: custui.cpp 프로젝트: p0nley/mame
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);
}
예제 #2
0
파일: gntcolors.c 프로젝트: bf4/pidgin-mac
void
gnt_uninit_colors()
{
	if (can_use_custom_color())
		restore_colors();
}