mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-21 10:20:21 +00:00
Only enable framebuf.dirty if we're actually using the menu framebuffer
This commit is contained in:
parent
9f7d9c9afd
commit
6feb1603f7
@ -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)
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user