1
0
mirror of https://github.com/libretro/RetroArch synced 2025-04-01 22:20:31 +00:00
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

@ -1224,12 +1224,12 @@ void gfx_animation_unset_update_time_cb(void)
} }
static void gfx_animation_update_time( static void gfx_animation_update_time(
gfx_animation_t *p_anim,
retro_time_t current_time, retro_time_t current_time,
bool timedate_enable, bool timedate_enable,
unsigned video_width, unsigned video_height, unsigned video_width, unsigned video_height,
float _ticker_speed) float _ticker_speed)
{ {
gfx_animation_t *p_anim = anim_get_ptr();
const bool ticker_is_active = p_anim->ticker_is_active; const bool ticker_is_active = p_anim->ticker_is_active;
static retro_time_t last_clock_update = 0; 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_t *p_anim = anim_get_ptr();
gfx_animation_update_time( gfx_animation_update_time(
p_anim,
current_time, current_time,
timedate_enable, timedate_enable,
video_width, video_height, video_width, video_height,

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