mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 18:40:09 +00:00
Merge pull request #8692 from natinusala/master
menu_widgets: notifications duration is now framerate independent
This commit is contained in:
commit
95c585e864
@ -3169,14 +3169,9 @@ void runloop_msg_queue_push(const char *msg,
|
||||
{
|
||||
runloop_ctx_msg_info_t msg_info;
|
||||
#if defined(HAVE_MENU) && defined(HAVE_MENU_WIDGETS)
|
||||
float target_hz = 0.0;
|
||||
|
||||
rarch_environment_cb(RETRO_ENVIRONMENT_GET_TARGET_REFRESH_RATE, &target_hz);
|
||||
|
||||
if (menu_widgets_msg_queue_push(msg,
|
||||
duration / target_hz * 1000, title, icon, category, prio, flush))
|
||||
duration / 60 * 1000, title, icon, category, prio, flush))
|
||||
return;
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_THREADS
|
||||
|
Loading…
x
Reference in New Issue
Block a user