Merge pull request #8692 from natinusala/master

menu_widgets: notifications duration is now framerate independent
This commit is contained in:
Twinaphex 2019-05-04 16:56:29 +02:00 committed by GitHub
commit 95c585e864
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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