(GLUI) Use menu_display_update_pending (why are we flagging

framebuffer dirty here BTW? GLUI doesn't use the framebuffer)
This commit is contained in:
twinaphex 2015-05-04 09:22:29 +02:00
parent dbd0da41a2
commit ad0440a343

View File

@ -63,12 +63,8 @@ static int glui_entry_iterate(unsigned action)
if (!menu || !runloop)
return -1;
if (action != MENU_ACTION_NOOP || menu->need_refresh ||
runloop->frames.video.current.menu.label.is_updated ||
runloop->frames.video.current.menu.animation.is_active)
{
if (action != MENU_ACTION_NOOP || menu->need_refresh || menu_display_update_pending())
runloop->frames.video.current.menu.framebuf.dirty = true;
}
cbs = (menu_file_list_cbs_t*)menu_list_get_actiondata_at_offset(
menu->menu_list->selection_buf, menu->navigation.selection_ptr);