Show game cursor also when video context driver has no windowed mode
support at all and mouse is still enabled
This commit is contained in:
parent
f5255889c6
commit
41f2ec1ecf
|
@ -541,9 +541,8 @@ static void glui_frame(void)
|
||||||
glui->box_message[0] = '\0';
|
glui->box_message[0] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings->menu.mouse.enable && settings->video.fullscreen)
|
if (settings->menu.mouse.enable && (settings->video.fullscreen || !video_driver_has_windowed()))
|
||||||
{
|
{
|
||||||
RARCH_LOG("still gets in.\n");
|
|
||||||
int16_t mouse_x = menu_input_mouse_state(MENU_MOUSE_X_AXIS);
|
int16_t mouse_x = menu_input_mouse_state(MENU_MOUSE_X_AXIS);
|
||||||
int16_t mouse_y = menu_input_mouse_state(MENU_MOUSE_Y_AXIS);
|
int16_t mouse_y = menu_input_mouse_state(MENU_MOUSE_Y_AXIS);
|
||||||
glui_render_quad(gl, mouse_x - 5, mouse_y - 5, 10, 10, width, height, &white_bg[0]);
|
glui_render_quad(gl, mouse_x - 5, mouse_y - 5, 10, 10, width, height, &white_bg[0]);
|
||||||
|
|
|
@ -648,7 +648,7 @@ static void rgui_render(void)
|
||||||
rgui->force_redraw = true;
|
rgui->force_redraw = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings->menu.mouse.enable && settings->video.fullscreen)
|
if (settings->menu.mouse.enable && (settings->video.fullscreen || !video_driver_has_windowed()))
|
||||||
rgui_blit_cursor(menu);
|
rgui_blit_cursor(menu);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1663,7 +1663,7 @@ static void xmb_frame(void)
|
||||||
xmb_frame_messagebox(msg);
|
xmb_frame_messagebox(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings->menu.mouse.enable && settings->video.fullscreen)
|
if (settings->menu.mouse.enable && (settings->video.fullscreen || !video_driver_has_windowed()))
|
||||||
{
|
{
|
||||||
int16_t mouse_x = menu_input_mouse_state(MENU_MOUSE_X_AXIS);
|
int16_t mouse_x = menu_input_mouse_state(MENU_MOUSE_X_AXIS);
|
||||||
int16_t mouse_y = menu_input_mouse_state(MENU_MOUSE_Y_AXIS);
|
int16_t mouse_y = menu_input_mouse_state(MENU_MOUSE_Y_AXIS);
|
||||||
|
|
Loading…
Reference in New Issue