mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 13:20:43 +00:00
gfx_display_draw_cursor - take out early return
This commit is contained in:
parent
8e5596873a
commit
cecd48e6b5
@ -1213,9 +1213,6 @@ void gfx_display_draw_cursor(
|
||||
gfx_display_t *p_disp = disp_get_ptr();
|
||||
gfx_display_ctx_driver_t *dispctx = p_disp->dispctx;
|
||||
|
||||
if (!cursor_visible)
|
||||
return;
|
||||
|
||||
coords.vertices = 4;
|
||||
coords.vertex = NULL;
|
||||
coords.tex_coord = NULL;
|
||||
|
@ -6796,6 +6796,7 @@ static void materialui_frame(void *data, video_frame_info_t *video_info)
|
||||
bool cursor_visible = video_fullscreen
|
||||
&& menu_mouse_enable;
|
||||
|
||||
if (cursor_visible)
|
||||
gfx_display_draw_cursor(
|
||||
userdata,
|
||||
video_width,
|
||||
|
@ -2904,6 +2904,7 @@ static void ozone_frame(void *data, video_frame_info_t *video_info)
|
||||
bool cursor_visible = video_fullscreen && menu_mouse_enable;
|
||||
|
||||
gfx_display_set_alpha(ozone_pure_white, 1.0f);
|
||||
if (cursor_visible)
|
||||
gfx_display_draw_cursor(
|
||||
userdata,
|
||||
video_width,
|
||||
|
@ -3034,6 +3034,7 @@ static void stripes_frame(void *data, video_frame_info_t *video_info)
|
||||
|
||||
gfx_display_set_alpha(stripes_coord_white, MIN(stripes->alpha, 1.00f));
|
||||
|
||||
if (cursor_visible)
|
||||
gfx_display_draw_cursor(
|
||||
userdata,
|
||||
video_width,
|
||||
|
@ -5281,6 +5281,7 @@ static void xmb_frame(void *data, video_frame_info_t *video_info)
|
||||
&& menu_mouse_enable;
|
||||
|
||||
gfx_display_set_alpha(coord_white, MIN(xmb->alpha, 1.00f));
|
||||
if (cursor_visible)
|
||||
gfx_display_draw_cursor(
|
||||
userdata,
|
||||
video_width,
|
||||
|
Loading…
x
Reference in New Issue
Block a user