Esempio n. 1
0
/* Updates TUI or it's elements if something is scheduled. */
static void
process_scheduled_updates(void)
{
	if(is_redraw_scheduled())
	{
		modes_redraw();
	}

	process_scheduled_updates_of_view(curr_view);
	process_scheduled_updates_of_view(other_view);
}
Esempio n. 2
0
/* Updates TUI or its elements if something is scheduled. */
static void
process_scheduled_updates(void)
{
	int need_redraw = 0;

	ui_stat_job_bar_check_for_updates();

	if(vle_mode_get_primary() != MENU_MODE)
	{
		need_redraw += (process_scheduled_updates_of_view(curr_view) != 0);
		need_redraw += (process_scheduled_updates_of_view(other_view) != 0);
	}

	need_redraw += (fetch_redraw_scheduled() != 0);

	if(need_redraw)
	{
		modes_redraw();
	}
}