This commit is contained in:
twinaphex 2020-06-08 23:13:29 +02:00
parent b183abbb0f
commit 52050739a1
2 changed files with 5 additions and 4 deletions

View File

@ -1224,12 +1224,12 @@ void gfx_animation_unset_update_time_cb(void)
}
static void gfx_animation_update_time(
gfx_animation_t *p_anim,
retro_time_t current_time,
bool timedate_enable,
unsigned video_width, unsigned video_height,
float _ticker_speed)
{
gfx_animation_t *p_anim = anim_get_ptr();
const bool ticker_is_active = p_anim->ticker_is_active;
static retro_time_t last_clock_update = 0;
@ -1345,6 +1345,7 @@ bool gfx_animation_update(
gfx_animation_t *p_anim = anim_get_ptr();
gfx_animation_update_time(
p_anim,
current_time,
timedate_enable,
video_width, video_height,

View File

@ -17258,7 +17258,7 @@ static bool rarch_environment_cb(unsigned cmd, void *data)
RARCH_LOG("[Environ]: SET_MESSAGE: %s\n", msg->msg);
#if defined(HAVE_GFX_WIDGETS)
if (p_rarch->widgets_active)
gfx_widget_set_libretro_message(dispwidget_get_ptr(),
gfx_widget_set_libretro_message(&p_rarch->dispwidget_st,
msg->msg,
roundf((float)msg->frames / 60.0f * 1000.0f));
else
@ -17349,7 +17349,7 @@ static bool rarch_environment_cb(unsigned cmd, void *data)
/* Handle 'alternate' non-queued notifications */
case RETRO_MESSAGE_TYPE_NOTIFICATION_ALT:
if (p_rarch->widgets_active)
gfx_widget_set_libretro_message(dispwidget_get_ptr(),
gfx_widget_set_libretro_message(&p_rarch->dispwidget_st,
msg->msg, msg->duration);
else
runloop_core_msg_queue_push(p_rarch, msg);
@ -17364,7 +17364,7 @@ static bool rarch_environment_cb(unsigned cmd, void *data)
* handle these correctly */
case RETRO_MESSAGE_TYPE_PROGRESS:
if (p_rarch->widgets_active)
gfx_widget_set_libretro_message(dispwidget_get_ptr(),
gfx_widget_set_libretro_message(&p_rarch->dispwidget_st,
msg->msg, msg->duration);
else
runloop_core_msg_queue_push(p_rarch, msg);