Rename gfx_timer_start to gfx_animation_timer_start

This commit is contained in:
twinaphex 2020-10-14 07:26:24 +02:00
parent 379bd80cda
commit e8a7195a46
10 changed files with 13 additions and 12 deletions

View File

@ -1000,7 +1000,7 @@ void gfx_animation_push_delayed(
timer_entry.duration = delay;
timer_entry.userdata = delayed_animation;
gfx_timer_start(&delayed_animation->timer, &timer_entry);
gfx_animation_timer_start(&delayed_animation->timer, &timer_entry);
}
bool gfx_animation_push(gfx_animation_ctx_entry_t *entry)
@ -2197,7 +2197,7 @@ void gfx_animation_deinit(gfx_animation_t *p_anim)
memset(p_anim, 0, sizeof(*p_anim));
}
void gfx_timer_start(gfx_timer_t *timer, gfx_timer_ctx_entry_t *timer_entry)
void gfx_animation_timer_start(gfx_timer_t *timer, gfx_timer_ctx_entry_t *timer_entry)
{
gfx_animation_ctx_entry_t entry;
uintptr_t tag = (uintptr_t) timer;

View File

@ -232,7 +232,8 @@ struct gfx_animation
typedef struct gfx_animation gfx_animation_t;
void gfx_timer_start(gfx_timer_t *timer, gfx_timer_ctx_entry_t *timer_entry);
void gfx_animation_timer_start(gfx_timer_t *timer,
gfx_timer_ctx_entry_t *timer_entry);
bool gfx_animation_update(
gfx_animation_t *p_anim,

View File

@ -673,7 +673,7 @@ static void gfx_widgets_start_msg_expiration_timer(
timer.duration = duration;
timer.userdata = msg_widget;
gfx_timer_start(&msg_widget->expiration_timer, &timer);
gfx_animation_timer_start(&msg_widget->expiration_timer, &timer);
msg_widget->expiration_timer_started = true;
}
@ -691,7 +691,7 @@ static void gfx_widgets_hourglass_end(void *userdata)
timer.duration = HOURGLASS_INTERVAL;
timer.userdata = msg;
gfx_timer_start(&msg->hourglass_timer, &timer);
gfx_animation_timer_start(&msg->hourglass_timer, &timer);
}
static void gfx_widgets_hourglass_tick(void *userdata)

View File

@ -341,7 +341,7 @@ static void gfx_widget_achievement_popup_unfold(void *userdata)
timer.duration = MSG_QUEUE_ANIMATION_DURATION + CHEEVO_NOTIFICATION_DURATION;
timer.userdata = NULL;
gfx_timer_start(&state->timer, &timer);
gfx_animation_timer_start(&state->timer, &timer);
}
static void gfx_widget_achievement_popup_start(

View File

@ -153,7 +153,7 @@ static void gfx_widget_generic_message_slide_in_cb(void *userdata)
timer.cb = gfx_widget_generic_message_wait_cb;
timer.userdata = state;
gfx_timer_start(&state->timer, &timer);
gfx_animation_timer_start(&state->timer, &timer);
state->status = GFX_WIDGET_GENERIC_MESSAGE_WAIT;
}

View File

@ -147,7 +147,7 @@ static void gfx_widget_libretro_message_slide_in_cb(void *userdata)
timer.cb = gfx_widget_libretro_message_wait_cb;
timer.userdata = state;
gfx_timer_start(&state->timer, &timer);
gfx_animation_timer_start(&state->timer, &timer);
state->status = GFX_WIDGET_LIBRETRO_MESSAGE_WAIT;
}

View File

@ -250,7 +250,7 @@ static void gfx_widget_load_content_animation_slide_cb(void *userdata)
timer.cb = gfx_widget_load_content_animation_wait_cb;
timer.userdata = state;
gfx_timer_start(&state->timer, &timer);
gfx_animation_timer_start(&state->timer, &timer);
state->status = GFX_WIDGET_LOAD_CONTENT_WAIT;
}

View File

@ -163,7 +163,7 @@ void gfx_widget_set_progress_message(void *data,
timer.cb = gfx_widget_progress_message_fadeout;
timer.userdata = state;
gfx_timer_start(&state->timer, &timer);
gfx_animation_timer_start(&state->timer, &timer);
/* Set initial widget opacity */
state->alpha = 1.0f;

View File

@ -342,7 +342,7 @@ static void gfx_widget_screenshot_iterate(
timer.userdata = p_dispwidget;
gfx_timer_start(&state->timer, &timer);
gfx_animation_timer_start(&state->timer, &timer);
state->loaded = true;
state->filename[0] = '\0';

View File

@ -304,7 +304,7 @@ void gfx_widget_volume_update_and_show(float new_volume, bool mute)
entry.duration = VOLUME_DURATION;
entry.userdata = NULL;
gfx_timer_start(&state->timer, &entry);
gfx_animation_timer_start(&state->timer, &entry);
}
static void gfx_widget_volume_layout(