Only enable framebuf.dirty if we're actually using the menu framebuffer

This commit is contained in:
twinaphex 2015-05-18 23:04:14 +02:00
parent 9f7d9c9afd
commit 6feb1603f7
2 changed files with 6 additions and 2 deletions

View File

@ -30,6 +30,7 @@
#ifdef HAVE_MENU
#include "menu/menu.h"
#include "menu/menu_display.h"
#include "menu/menu_shader.h"
#include "menu/menu_input.h"
#endif
@ -1094,7 +1095,7 @@ bool event_command(enum event_command cmd)
{
menu_handle_t *menu = menu_driver_get_ptr();
if (menu)
if (menu && menu_display_fb_in_use())
menu->framebuf.dirty = true;
if (runloop->is_menu)

View File

@ -437,7 +437,10 @@ int menu_entry_iterate(unsigned action)
return -1;
if (action != MENU_ACTION_NOOP || menu_needs_refresh() || menu_display_update_pending())
menu->framebuf.dirty = true;
{
if (menu_display_fb_in_use())
menu->framebuf.dirty = true;
}
cbs = (menu_file_list_cbs_t*)menu_list_get_last_stack_actiondata(menu_list);