Make menu_animation_get_ptr a static function
This commit is contained in:
parent
541c9a2066
commit
6380ad27bd
|
@ -51,9 +51,11 @@ struct menu_animation
|
||||||
retro_time_t old_time;
|
retro_time_t old_time;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef struct menu_animation menu_animation_t;
|
||||||
|
|
||||||
static menu_animation_t menu_animation_state;
|
static menu_animation_t menu_animation_state;
|
||||||
|
|
||||||
menu_animation_t *menu_animation_get_ptr(void)
|
static menu_animation_t *menu_animation_get_ptr(void)
|
||||||
{
|
{
|
||||||
return &menu_animation_state;
|
return &menu_animation_state;
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,8 +33,6 @@ extern "C" {
|
||||||
typedef float (*easingFunc)(float, float, float, float);
|
typedef float (*easingFunc)(float, float, float, float);
|
||||||
typedef void (*tween_cb) (void);
|
typedef void (*tween_cb) (void);
|
||||||
|
|
||||||
typedef struct menu_animation menu_animation_t;
|
|
||||||
|
|
||||||
enum menu_animation_easing_type
|
enum menu_animation_easing_type
|
||||||
{
|
{
|
||||||
/* Linear */
|
/* Linear */
|
||||||
|
@ -107,8 +105,6 @@ bool menu_animation_update(float dt);
|
||||||
void menu_animation_ticker_str(char *s, size_t len, uint64_t tick,
|
void menu_animation_ticker_str(char *s, size_t len, uint64_t tick,
|
||||||
const char *str, bool selected);
|
const char *str, bool selected);
|
||||||
|
|
||||||
menu_animation_t *menu_animation_get_ptr(void);
|
|
||||||
|
|
||||||
void menu_animation_update_time(void);
|
void menu_animation_update_time(void);
|
||||||
|
|
||||||
void menu_animation_set_active(void);
|
void menu_animation_set_active(void);
|
||||||
|
|
Loading…
Reference in New Issue