mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Cleanups
This commit is contained in:
parent
8802712ae7
commit
6e09eada2d
@ -2227,7 +2227,7 @@ void gfx_timer_start(gfx_timer_t *timer, gfx_timer_ctx_entry_t *timer_entry)
|
|||||||
gfx_animation_ctx_entry_t entry;
|
gfx_animation_ctx_entry_t entry;
|
||||||
uintptr_t tag = (uintptr_t) timer;
|
uintptr_t tag = (uintptr_t) timer;
|
||||||
|
|
||||||
gfx_timer_kill(timer);
|
gfx_animation_kill_by_tag(&tag);
|
||||||
|
|
||||||
*timer = 0.0f;
|
*timer = 0.0f;
|
||||||
|
|
||||||
|
@ -394,6 +394,7 @@ static void gfx_widgets_msg_queue_free(
|
|||||||
disp_widget_msg_t *msg)
|
disp_widget_msg_t *msg)
|
||||||
{
|
{
|
||||||
uintptr_t tag = (uintptr_t)msg;
|
uintptr_t tag = (uintptr_t)msg;
|
||||||
|
uintptr_t hourglass_timer_tag = (uintptr_t)&msg->hourglass_timer;
|
||||||
|
|
||||||
if (msg->task_ptr)
|
if (msg->task_ptr)
|
||||||
{
|
{
|
||||||
@ -408,7 +409,7 @@ static void gfx_widgets_msg_queue_free(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Kill all animations */
|
/* Kill all animations */
|
||||||
gfx_timer_kill(&msg->hourglass_timer);
|
gfx_animation_kill_by_tag(&hourglass_timer_tag);
|
||||||
gfx_animation_kill_by_tag(&tag);
|
gfx_animation_kill_by_tag(&tag);
|
||||||
|
|
||||||
/* Kill all timers */
|
/* Kill all timers */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user