Make menu_animation_get_ptr a static function

This commit is contained in:
twinaphex 2015-09-25 22:26:10 +02:00
parent 541c9a2066
commit 6380ad27bd
2 changed files with 3 additions and 5 deletions

View File

@ -51,9 +51,11 @@ struct menu_animation
retro_time_t old_time;
};
typedef struct menu_animation menu_animation_t;
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;
}

View File

@ -33,8 +33,6 @@ extern "C" {
typedef float (*easingFunc)(float, float, float, float);
typedef void (*tween_cb) (void);
typedef struct menu_animation menu_animation_t;
enum menu_animation_easing_type
{
/* Linear */
@ -107,8 +105,6 @@ bool menu_animation_update(float dt);
void menu_animation_ticker_str(char *s, size_t len, uint64_t tick,
const char *str, bool selected);
menu_animation_t *menu_animation_get_ptr(void);
void menu_animation_update_time(void);
void menu_animation_set_active(void);