From 1c9d0dbf482772ea2bfdd01fc2c7cb86da65c6f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi?= Date: Sun, 17 Nov 2019 18:03:57 +0100 Subject: [PATCH] Refactoring (still trying to fix CI compilation issue) --- menu/menu_setting.c | 5 +---- menu/menu_setting.h | 2 -- retroarch.c | 4 ++++ retroarch.h | 2 ++ 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 95d19326fc..7605b7b0bb 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -23,6 +23,7 @@ #endif #include +#include #include #include #include @@ -16698,10 +16699,6 @@ bool menu_setting_ctl(enum menu_setting_ctl_state state, void *data) return true; } -unsigned int get_rotation(){ - return config_get_ptr()->uints.video_rotation + runloop_get_system_info()->rotation; -} - void video_driver_menu_settings(void **list_data, void *list_info_data, void *group_data, void *subgroup_data, const char *parent_group) { diff --git a/menu/menu_setting.h b/menu/menu_setting.h index 7743e364b1..fe0f9108f2 100644 --- a/menu/menu_setting.h +++ b/menu/menu_setting.h @@ -136,8 +136,6 @@ void menu_setting_free(rarch_setting_t *setting); bool menu_setting_ctl( enum menu_setting_ctl_state state, void *data); -unsigned int get_rotation(); - RETRO_END_DECLS #endif diff --git a/retroarch.c b/retroarch.c index 092fec29cd..c3375ab7cd 100644 --- a/retroarch.c +++ b/retroarch.c @@ -27446,3 +27446,7 @@ static void core_free_retro_game_info(struct retro_game_info *dest) dest->data = NULL; dest->meta = NULL; } + +unsigned int get_rotation(){ + return configuration_settings->uints.video_rotation + runloop_system.rotation; +} \ No newline at end of file diff --git a/retroarch.h b/retroarch.h index 7cca87762d..3ebd7ec1e9 100644 --- a/retroarch.h +++ b/retroarch.h @@ -2133,6 +2133,8 @@ bool menu_driver_is_toggled(void); bool menu_widgets_ready(void); +unsigned int get_rotation(void); + RETRO_END_DECLS #endif