Turn menu_video_get_ident into static function

This commit is contained in:
twinaphex 2015-11-02 22:27:19 +01:00
parent 7b35620859
commit b90c78251d
2 changed files with 12 additions and 15 deletions

View File

@ -656,6 +656,18 @@ void menu_display_texture_unload(uintptr_t *id)
}
#endif
static const char *menu_video_get_ident(void)
{
#ifdef HAVE_THREADS
settings_t *settings = config_get_ptr();
if (settings->video.threaded)
return rarch_threaded_video_get_ident();
#endif
return video_driver_get_ident();
}
bool menu_display_check_compatibility(enum menu_display_driver_type type)
{
const char *video_driver = menu_video_get_ident();
@ -677,16 +689,3 @@ bool menu_display_check_compatibility(enum menu_display_driver_type type)
RARCH_ERR("Cannot initialize menu driver: video driver of type %d is not active.\n", type);
return false;
}
const char *menu_video_get_ident(void)
{
#ifdef HAVE_THREADS
settings_t *settings = config_get_ptr();
if (settings->video.threaded)
return rarch_threaded_video_get_ident();
#endif
return video_driver_get_ident();
}

View File

@ -142,8 +142,6 @@ void menu_display_texture_unload(uintptr_t *id);
bool menu_display_check_compatibility(enum menu_display_driver_type type);
const char *menu_video_get_ident(void);
#ifdef __cplusplus
}
#endif