mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 08:37:41 +00:00
GFX_CTL_SHOW_MOUSE added
This commit is contained in:
parent
425a290ced
commit
6a697ef2e1
@ -1051,7 +1051,7 @@ static void d3d_set_rotation(void *data, unsigned rot)
|
||||
|
||||
static void d3d_show_mouse(void *data, bool state)
|
||||
{
|
||||
gfx_ctx_show_mouse(state);
|
||||
gfx_ctx_ctl(GFX_CTL_SHOW_MOUSE, &state);
|
||||
}
|
||||
|
||||
static const gfx_ctx_driver_t *d3d_get_context(void *data)
|
||||
@ -1359,7 +1359,7 @@ static void d3d_overlay_enable(void *data, bool state)
|
||||
for (i = 0; i < d3d->overlays.size(); i++)
|
||||
d3d->overlays_enabled = state;
|
||||
|
||||
gfx_ctx_show_mouse(state);
|
||||
gfx_ctx_ctl(GFX_CTL_SHOW_MOUSE, &state);
|
||||
}
|
||||
|
||||
static void d3d_overlay_full_screen(void *data, bool enable)
|
||||
|
@ -3195,7 +3195,7 @@ static void gl_overlay_enable(void *data, bool state)
|
||||
gl->overlay_enable = state;
|
||||
|
||||
if (gl->fullscreen)
|
||||
gfx_ctx_show_mouse(state);
|
||||
gfx_ctx_ctl(GFX_CTL_SHOW_MOUSE, &state);
|
||||
}
|
||||
|
||||
static void gl_overlay_full_screen(void *data, bool enable)
|
||||
@ -3387,7 +3387,7 @@ static void gl_set_osd_msg(void *data, const char *msg,
|
||||
|
||||
static void gl_show_mouse(void *data, bool state)
|
||||
{
|
||||
gfx_ctx_show_mouse(state);
|
||||
gfx_ctx_ctl(GFX_CTL_SHOW_MOUSE, &state);
|
||||
}
|
||||
|
||||
static struct video_shader *gl_get_current_shader(void *data)
|
||||
|
@ -59,7 +59,8 @@ enum gfx_ctx_ctl_state
|
||||
GFX_CTL_FREE,
|
||||
GFX_CTL_SWAP_BUFFERS,
|
||||
GFX_CTL_HAS_WINDOWED,
|
||||
GFX_CTL_UPDATE_WINDOW_TITLE
|
||||
GFX_CTL_UPDATE_WINDOW_TITLE,
|
||||
GFX_CTL_SHOW_MOUSE
|
||||
};
|
||||
|
||||
typedef void (*gfx_ctx_proc_t)(void);
|
||||
@ -223,8 +224,6 @@ bool gfx_ctx_image_buffer_write(const void *frame,
|
||||
unsigned width, unsigned height, unsigned pitch, bool rgb32,
|
||||
unsigned index, void **image_handle);
|
||||
|
||||
void gfx_ctx_show_mouse(bool state);
|
||||
|
||||
bool gfx_ctx_check_window(bool *quit, bool *resize,
|
||||
unsigned *width, unsigned *height);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user