menu_widgets: notifications duration is now framerate independent
This commit is contained in:
parent
8a92ad7dbf
commit
03e3e3f520
|
@ -3169,14 +3169,9 @@ void runloop_msg_queue_push(const char *msg,
|
||||||
{
|
{
|
||||||
runloop_ctx_msg_info_t msg_info;
|
runloop_ctx_msg_info_t msg_info;
|
||||||
#if defined(HAVE_MENU) && defined(HAVE_MENU_WIDGETS)
|
#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,
|
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;
|
return;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_THREADS
|
#ifdef HAVE_THREADS
|
||||||
|
|
Loading…
Reference in New Issue