(Menu) Let the menu driver clear the dirty bits
This commit is contained in:
parent
98502d0b31
commit
50b09109d9
|
@ -333,14 +333,20 @@ static void rgui_render(void)
|
||||||
|
|
||||||
if (!menu)
|
if (!menu)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (menu->need_refresh && g_runloop.is_menu
|
if (menu->need_refresh && g_runloop.is_menu
|
||||||
&& !menu->msg_force)
|
&& !menu->msg_force)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!g_runloop.frames.video.current.menu.framebuf.dirty
|
if (!g_runloop.frames.video.current.menu.framebuf.dirty
|
||||||
&& !g_runloop.frames.video.current.menu.animation.is_active
|
&& !g_runloop.frames.video.current.menu.animation.is_active
|
||||||
&& !g_runloop.frames.video.current.menu.label.is_updated)
|
&& !g_runloop.frames.video.current.menu.label.is_updated)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
g_runloop.frames.video.current.menu.animation.is_active = false;
|
||||||
|
g_runloop.frames.video.current.menu.label.is_updated = false;
|
||||||
|
g_runloop.frames.video.current.menu.framebuf.dirty = false;
|
||||||
|
|
||||||
menu->mouse.ptr = menu->mouse.y / 11 - 2 + menu->begin;
|
menu->mouse.ptr = menu->mouse.y / 11 - 2 + menu->begin;
|
||||||
|
|
||||||
if (menu->mouse.wheeldown && menu->begin
|
if (menu->mouse.wheeldown && menu->begin
|
||||||
|
|
|
@ -402,10 +402,6 @@ int menu_iterate(retro_input_t input,
|
||||||
if (g_runloop.is_menu)
|
if (g_runloop.is_menu)
|
||||||
draw_frame();
|
draw_frame();
|
||||||
|
|
||||||
g_runloop.frames.video.current.menu.animation.is_active = false;
|
|
||||||
g_runloop.frames.video.current.menu.label.is_updated = false;
|
|
||||||
g_runloop.frames.video.current.menu.framebuf.dirty = false;
|
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue