Turn video_driver_is_threaded into a static function

This commit is contained in:
twinaphex 2017-01-05 08:52:30 +01:00
parent 5203495e09
commit c028f56016
2 changed files with 5 additions and 6 deletions

View File

@ -297,15 +297,15 @@ static bool hw_render_context_is_gl(enum retro_hw_context_type type)
return false;
}
bool video_driver_is_threaded(void)
static bool video_driver_is_threaded(void)
{
#ifdef HAVE_THREADS
settings_t *settings = config_get_ptr();
return settings->video.threaded
&& !video_driver_is_hw_context();
#else
return false;
if (!video_driver_is_hw_context()
&& settings->video.threaded)
return true;
#endif
return false;
}
/**

View File

@ -263,7 +263,6 @@ void video_driver_set_own_driver(void);
void video_driver_unset_own_driver(void);
bool video_driver_owns_driver(void);
bool video_driver_is_hw_context(void);
bool video_driver_is_threaded(void);
void video_driver_deinit_hw_context(void);
struct retro_hw_render_callback *video_driver_get_hw_context(void);
const struct retro_hw_render_context_negotiation_interface