Remove video_context_driver_show_mouse

This commit is contained in:
twinaphex 2019-08-28 21:36:58 +02:00
parent aeedeb14a9
commit c50cc7b010
6 changed files with 20 additions and 22 deletions

View File

@ -2399,7 +2399,10 @@ static void gl2_set_osd_msg(void *data,
static void gl2_show_mouse(void *data, bool state)
{
video_context_driver_show_mouse(&state);
gl_t *gl = (gl_t*)data;
if (gl && gl->ctx_driver->show_mouse)
gl->ctx_driver->show_mouse(gl->ctx_data, state);
}
static struct video_shader *gl2_get_current_shader(void *data)
@ -4278,8 +4281,8 @@ static void gl2_overlay_enable(void *data, bool state)
gl->overlay_enable = state;
if (gl->fullscreen)
video_context_driver_show_mouse(&state);
if (gl->fullscreen && gl->ctx_driver->show_mouse)
gl->ctx_driver->show_mouse(gl->ctx_data, state);
}
static void gl2_overlay_full_screen(void *data, bool enable)

View File

@ -1464,8 +1464,8 @@ static void gl1_overlay_enable(void *data, bool state)
gl->overlay_enable = state;
if (gl->fullscreen)
video_context_driver_show_mouse(&state);
if (gl->fullscreen && gl->ctx_driver->show_mouse)
gl->ctx_driver->show_mouse(gl->ctx_data, state);
}
static void gl1_overlay_full_screen(void *data, bool enable)

View File

@ -1277,8 +1277,8 @@ static void gl_core_overlay_enable(void *data, bool state)
gl->overlay_enable = state;
if (gl->fullscreen)
video_context_driver_show_mouse(&state);
if (gl->fullscreen && gl->ctx_driver->show_mouse)
gl->ctx_driver->show_mouse(gl->ctx_data, state);
}
static void gl_core_overlay_full_screen(void *data, bool enable)
@ -1892,7 +1892,10 @@ static void gl_core_set_video_mode(void *data, unsigned width, unsigned height,
static void gl_core_show_mouse(void *data, bool state)
{
video_context_driver_show_mouse(&state);
gl_core_t *gl = (gl_core_t*)data;
if (gl && gl->ctx_driver->show_mouse)
gl->ctx_driver->show_mouse(gl->ctx_data, state);
}
static void gl_core_set_osd_msg(void *data,

View File

@ -2162,8 +2162,10 @@ static void vulkan_apply_state_changes(void *data)
static void vulkan_show_mouse(void *data, bool state)
{
(void)data;
video_context_driver_show_mouse(&state);
vk_t *vk = (vk_t*)data;
if (vk && vk->ctx_driver->show_mouse)
vk->ctx_driver->show_mouse(vk->ctx_data, state);
}
static struct video_shader *vulkan_get_current_shader(void *data)
@ -2581,8 +2583,8 @@ static void vulkan_overlay_enable(void *data, bool enable)
return;
vk->overlay.enable = enable;
if (vk->fullscreen)
video_context_driver_show_mouse(&enable);
if (vk->ctx_driver->show_mouse)
vk->ctx_driver->show_mouse(vk->ctx_data, enable);
}
static void vulkan_overlay_full_screen(void *data, bool enable)

View File

@ -19737,14 +19737,6 @@ bool video_context_driver_get_video_size(gfx_ctx_mode_t *mode_info)
return true;
}
bool video_context_driver_show_mouse(bool *bool_data)
{
if (!current_video_context.show_mouse)
return false;
current_video_context.show_mouse(video_context_data, *bool_data);
return true;
}
bool video_context_driver_get_flags(gfx_ctx_flags_t *flags)
{
if (!current_video_context.get_flags)

View File

@ -1863,8 +1863,6 @@ bool video_context_driver_get_video_size(gfx_ctx_mode_t *mode_info);
bool video_context_driver_get_refresh_rate(float *refresh_rate);
bool video_context_driver_show_mouse(bool *bool_data);
bool video_context_driver_set_flags(gfx_ctx_flags_t *flags);
bool video_context_driver_get_metrics(gfx_ctx_metrics_t *metrics);