mirror of
https://github.com/libretro/RetroArch
synced 2025-03-17 10:21:26 +00:00
Get rid of gfx_timer_t typedef - replace with float
This commit is contained in:
parent
3c20e709ea
commit
b6c9740ba3
@ -2221,7 +2221,7 @@ void gfx_animation_deinit(void)
|
||||
memset(p_anim, 0, sizeof(*p_anim));
|
||||
}
|
||||
|
||||
void gfx_animation_timer_start(gfx_timer_t *timer, gfx_timer_ctx_entry_t *timer_entry)
|
||||
void gfx_animation_timer_start(float *timer, gfx_timer_ctx_entry_t *timer_entry)
|
||||
{
|
||||
gfx_animation_ctx_entry_t entry;
|
||||
uintptr_t tag = (uintptr_t) timer;
|
||||
|
@ -180,8 +180,6 @@ typedef struct gfx_animation_ctx_line_ticker_smooth
|
||||
bool fade_enabled;
|
||||
} gfx_animation_ctx_line_ticker_smooth_t;
|
||||
|
||||
typedef float gfx_timer_t;
|
||||
|
||||
typedef struct gfx_timer_ctx_entry
|
||||
{
|
||||
tween_cb cb;
|
||||
@ -192,7 +190,7 @@ typedef struct gfx_timer_ctx_entry
|
||||
typedef struct gfx_delayed_animation
|
||||
{
|
||||
gfx_animation_ctx_entry_t entry; /* pointer alignment */
|
||||
gfx_timer_t timer;
|
||||
float timer;
|
||||
} gfx_delayed_animation_t;
|
||||
|
||||
typedef float (*easing_cb) (float, float, float, float);
|
||||
@ -234,7 +232,7 @@ struct gfx_animation
|
||||
|
||||
typedef struct gfx_animation gfx_animation_t;
|
||||
|
||||
void gfx_animation_timer_start(gfx_timer_t *timer,
|
||||
void gfx_animation_timer_start(float *timer,
|
||||
gfx_timer_ctx_entry_t *timer_entry);
|
||||
|
||||
bool gfx_animation_update(
|
||||
|
@ -129,8 +129,8 @@ typedef struct disp_widget_msg
|
||||
float alpha;
|
||||
float unfold;
|
||||
float hourglass_rotation;
|
||||
gfx_timer_t hourglass_timer; /* float alignment */
|
||||
gfx_timer_t expiration_timer; /* float alignment */
|
||||
float hourglass_timer; /* float alignment */
|
||||
float expiration_timer; /* float alignment */
|
||||
|
||||
int8_t task_progress;
|
||||
/* How many tasks have used this notification? */
|
||||
|
@ -50,7 +50,7 @@ struct gfx_widget_achievement_popup_state
|
||||
int queue_write_index;
|
||||
unsigned width;
|
||||
unsigned height;
|
||||
gfx_timer_t timer; /* float alignment */
|
||||
float timer; /* float alignment */
|
||||
float unfold;
|
||||
float y;
|
||||
};
|
||||
|
@ -44,7 +44,7 @@ struct gfx_widget_generic_message_state
|
||||
|
||||
unsigned message_duration;
|
||||
|
||||
gfx_timer_t timer; /* float alignment */
|
||||
float timer; /* float alignment */
|
||||
|
||||
float bg_x;
|
||||
float bg_y_start;
|
||||
|
@ -43,7 +43,7 @@ struct gfx_widget_libretro_message_state
|
||||
|
||||
unsigned message_duration;
|
||||
|
||||
gfx_timer_t timer; /* float alignment */
|
||||
float timer; /* float alignment */
|
||||
|
||||
float bg_x;
|
||||
float bg_y_start;
|
||||
|
@ -63,7 +63,7 @@ struct gfx_widget_load_content_animation_state
|
||||
unsigned bg_width;
|
||||
unsigned bg_height;
|
||||
|
||||
gfx_timer_t timer; /* float alignment */
|
||||
float timer; /* float alignment */
|
||||
float bg_x;
|
||||
float bg_y;
|
||||
float alpha;
|
||||
|
@ -35,7 +35,7 @@ struct gfx_widget_progress_message_state
|
||||
|
||||
unsigned priority;
|
||||
|
||||
gfx_timer_t timer; /* float alignment */
|
||||
float timer; /* float alignment */
|
||||
float alpha;
|
||||
float widget_x;
|
||||
float widget_y;
|
||||
|
@ -41,7 +41,7 @@ struct gfx_widget_screenshot_state
|
||||
float scale_factor;
|
||||
float y;
|
||||
float alpha;
|
||||
gfx_timer_t timer; /* float alignment */
|
||||
float timer; /* float alignment */
|
||||
|
||||
char shotname[256];
|
||||
char filename[256];
|
||||
|
@ -57,7 +57,7 @@ struct gfx_widget_volume_state
|
||||
float text_alpha;
|
||||
float db;
|
||||
float percent;
|
||||
gfx_timer_t timer; /* float alignment */
|
||||
float timer; /* float alignment */
|
||||
|
||||
bool mute;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user