From 6380ad27bd3ee1523ebf9abfa2a0cd31aa7a0b6b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 25 Sep 2015 22:26:10 +0200 Subject: [PATCH] Make menu_animation_get_ptr a static function --- menu/menu_animation.c | 4 +++- menu/menu_animation.h | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/menu/menu_animation.c b/menu/menu_animation.c index a6dd53e8cf..7b52027b73 100644 --- a/menu/menu_animation.c +++ b/menu/menu_animation.c @@ -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; } diff --git a/menu/menu_animation.h b/menu/menu_animation.h index fb833fa7ec..5502e2dc79 100644 --- a/menu/menu_animation.h +++ b/menu/menu_animation.h @@ -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);