mirror of
https://github.com/libretro/RetroArch
synced 2025-03-09 22:13:25 +00:00
Cleanups
This commit is contained in:
parent
7c7d0f596a
commit
ebc335319e
@ -36,10 +36,11 @@
|
||||
#ifdef HAVE_MENU
|
||||
#include "../menu/menu_driver.h"
|
||||
#include "../menu/menu_entries.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_GFX_WIDGETS
|
||||
#include "../gfx/gfx_widgets.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_THREADS
|
||||
#include <rthreads/rthreads.h>
|
||||
|
12
retroarch.c
12
retroarch.c
@ -25967,8 +25967,8 @@ static void runloop_task_msg_queue_push(
|
||||
ui_companion_driver_msg_queue_push(msg,
|
||||
prio, task ? duration : duration * 60 / 1000, flush);
|
||||
#ifdef HAVE_ACCESSIBILITY
|
||||
if (is_accessibility_enabled())
|
||||
accessibility_speak_priority((char*)msg, 0);
|
||||
if (is_accessibility_enabled())
|
||||
accessibility_speak_priority((char*)msg, 0);
|
||||
#endif
|
||||
gfx_widgets_msg_queue_push(task, msg, duration, NULL, (enum message_queue_icon)MESSAGE_QUEUE_CATEGORY_INFO, (enum message_queue_category)MESSAGE_QUEUE_ICON_DEFAULT, prio, flush,
|
||||
#ifdef HAVE_MENU
|
||||
@ -26846,10 +26846,6 @@ void runloop_msg_queue_push(const char *msg,
|
||||
#if defined(HAVE_GFX_WIDGETS)
|
||||
if (gfx_widgets_inited)
|
||||
{
|
||||
#ifdef HAVE_ACCESSIBILITY
|
||||
if (is_accessibility_enabled())
|
||||
accessibility_speak_priority((char*)msg, 0);
|
||||
#endif
|
||||
gfx_widgets_msg_queue_push(NULL, msg,
|
||||
roundf((float)duration / 60.0f * 1000.0f),
|
||||
title, icon, category, prio, flush,
|
||||
@ -27351,7 +27347,7 @@ static enum runloop_state runloop_check_state(void)
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(HAVE_MENU)
|
||||
#if defined(HAVE_MENU) || defined(HAVE_MENU_WIDGETS)
|
||||
gfx_animation_update(
|
||||
settings->bools.menu_timedate_enable,
|
||||
settings->floats.menu_ticker_speed,
|
||||
@ -27370,6 +27366,7 @@ static enum runloop_state runloop_check_state(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_MENU
|
||||
if (menu_is_alive)
|
||||
{
|
||||
enum menu_action action;
|
||||
@ -27496,6 +27493,7 @@ static enum runloop_state runloop_check_state(void)
|
||||
return RUNLOOP_STATE_POLLED_AND_SLEEP;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
#endif
|
||||
{
|
||||
if (runloop_idle)
|
||||
|
Loading…
x
Reference in New Issue
Block a user