mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +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
|
#ifdef HAVE_MENU
|
||||||
#include "menu/menu.h"
|
#include "menu/menu.h"
|
||||||
|
#include "menu/menu_display.h"
|
||||||
#include "menu/menu_shader.h"
|
#include "menu/menu_shader.h"
|
||||||
#include "menu/menu_input.h"
|
#include "menu/menu_input.h"
|
||||||
#endif
|
#endif
|
||||||
@ -1094,7 +1095,7 @@ bool event_command(enum event_command cmd)
|
|||||||
{
|
{
|
||||||
menu_handle_t *menu = menu_driver_get_ptr();
|
menu_handle_t *menu = menu_driver_get_ptr();
|
||||||
|
|
||||||
if (menu)
|
if (menu && menu_display_fb_in_use())
|
||||||
menu->framebuf.dirty = true;
|
menu->framebuf.dirty = true;
|
||||||
|
|
||||||
if (runloop->is_menu)
|
if (runloop->is_menu)
|
||||||
|
@ -437,7 +437,10 @@ int menu_entry_iterate(unsigned action)
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (action != MENU_ACTION_NOOP || menu_needs_refresh() || menu_display_update_pending())
|
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);
|
cbs = (menu_file_list_cbs_t*)menu_list_get_last_stack_actiondata(menu_list);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user