Make video_driver_unset_callback a static function

This commit is contained in:
twinaphex 2015-11-20 18:57:04 +01:00
parent 0184a73de8
commit c1fa9dc637
2 changed files with 9 additions and 10 deletions

View File

@ -390,6 +390,15 @@ static void init_video_input(const input_driver_t *tmp)
retro_fail(1, "init_video_input()");
}
static void video_driver_unset_callback(void)
{
struct retro_hw_render_callback *hw_render =
video_driver_callback();
if (hw_render)
hw_render = NULL;
}
void uninit_video_input(void)
{
driver_t *driver = driver_get_ptr();
@ -1040,14 +1049,6 @@ struct retro_hw_render_callback *video_driver_callback(void)
return &video_state.hw_render_callback;
}
void video_driver_unset_callback(void)
{
struct retro_hw_render_callback *hw_render =
video_driver_callback();
if (hw_render)
hw_render = NULL;
}
bool video_driver_frame_filter(const void *data,
unsigned width, unsigned height,

View File

@ -348,8 +348,6 @@ void video_driver_set_aspect_ratio_value(float value);
struct retro_hw_render_callback *video_driver_callback(void);
void video_driver_unset_callback(void);
bool video_driver_frame_filter(const void *data,
unsigned width, unsigned height,
size_t pitch,