From d8ebcde5ecfab6a99a36096ea3a5e8c89c7ed96c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 14 Mar 2016 14:39:58 +0100 Subject: [PATCH] Implement GFX_CTL_SHOW_MOUSE --- gfx/video_context_driver.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gfx/video_context_driver.c b/gfx/video_context_driver.c index 983134bc1c..bb949717a6 100644 --- a/gfx/video_context_driver.c +++ b/gfx/video_context_driver.c @@ -444,6 +444,14 @@ bool gfx_ctx_ctl(enum gfx_ctx_ctl_state state, void *data) *(void**)data = current_video_context->get_context_data(video_context_data); } break; + case GFX_CTL_SHOW_MOUSE: + { + bool *bool_data = (bool*)data; + if (!current_video_context || !current_video_context->show_mouse) + return false; + current_video_context->show_mouse(video_context_data, *bool_data); + } + break; case GFX_CTL_SET_VIDEO_CONTEXT_DATA: video_context_data = data; break;