mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
(Menu) Render when we are focused
This commit is contained in:
parent
94e145c9b0
commit
af2efa8a29
@ -37,6 +37,7 @@
|
||||
|
||||
#include "input/keyboard_line.h"
|
||||
#include "input/input_driver.h"
|
||||
#include "ui/ui_companion_driver.h"
|
||||
|
||||
#ifdef HAVE_MENU
|
||||
#include "menu/menu.h"
|
||||
@ -850,6 +851,7 @@ int rarch_main_iterate(unsigned *sleep_ms)
|
||||
if (input)
|
||||
{
|
||||
input = 0;
|
||||
|
||||
|
||||
/* If core was paused before entering menu, evoke
|
||||
* pause toggle to wake it up. */
|
||||
@ -930,6 +932,10 @@ int rarch_main_iterate(unsigned *sleep_ms)
|
||||
{
|
||||
if (menu_driver_iterate((enum menu_action)menu_input_frame_retropad(input, trigger_input)) == -1)
|
||||
rarch_ctl(RARCH_ACTION_STATE_MENU_RUNNING_FINISHED, NULL);
|
||||
|
||||
if (check_focus(settings) && !ui_companion_is_on_foreground())
|
||||
menu_iterate_render();
|
||||
|
||||
if (!input && settings->menu.pause_libretro)
|
||||
ret = 1;
|
||||
goto end;
|
||||
|
@ -33,11 +33,6 @@ void rarch_main_data_deinit(void)
|
||||
|
||||
void rarch_main_data_iterate(bool sleeping)
|
||||
{
|
||||
#ifdef HAVE_MENU
|
||||
if (!sleeping)
|
||||
menu_iterate_render();
|
||||
#endif
|
||||
|
||||
if (data_runloop_msg[0] != '\0')
|
||||
{
|
||||
rarch_main_msg_queue_push(data_runloop_msg, 1, 10, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user