mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 16:20:39 +00:00
osd: fix fast forward indicator
This commit is contained in:
parent
b12d1d7d8a
commit
e394b439a8
16
retroarch.c
16
retroarch.c
@ -24664,12 +24664,7 @@ static void update_fastforwarding_state(void)
|
|||||||
#if defined(HAVE_MENU) && defined(HAVE_MENU_WIDGETS)
|
#if defined(HAVE_MENU) && defined(HAVE_MENU_WIDGETS)
|
||||||
if (menu_widgets_inited)
|
if (menu_widgets_inited)
|
||||||
menu_widgets_fast_forward = true;
|
menu_widgets_fast_forward = true;
|
||||||
else
|
|
||||||
#endif
|
#endif
|
||||||
{
|
|
||||||
runloop_msg_queue_push(
|
|
||||||
msg_hash_to_str(MSG_FAST_FORWARD), 1, 1, false, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#if defined(HAVE_MENU) && defined(HAVE_MENU_WIDGETS)
|
#if defined(HAVE_MENU) && defined(HAVE_MENU_WIDGETS)
|
||||||
else
|
else
|
||||||
@ -25333,6 +25328,17 @@ static enum runloop_state runloop_check_state(void)
|
|||||||
|
|
||||||
old_button_state = new_button_state;
|
old_button_state = new_button_state;
|
||||||
old_hold_button_state = new_hold_button_state;
|
old_hold_button_state = new_hold_button_state;
|
||||||
|
|
||||||
|
/* Show the fast-forward OSD for 1 frame every frame if menu widgets are disabled */
|
||||||
|
#if defined(HAVE_MENU) && defined(HAVE_MENU_WIDGETS)
|
||||||
|
if (!menu_widgets_inited && runloop_fastmotion)
|
||||||
|
#else
|
||||||
|
if (runloop_fastmotion)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
runloop_msg_queue_push(
|
||||||
|
msg_hash_to_str(MSG_FAST_FORWARD), 1, 1, false, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if we have pressed any of the state slot buttons */
|
/* Check if we have pressed any of the state slot buttons */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user