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:
twinaphex 2015-10-08 07:11:52 +02:00
parent f5255889c6
commit 41f2ec1ecf
3 changed files with 3 additions and 4 deletions

View File

@ -541,9 +541,8 @@ static void glui_frame(void)
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_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]);

View File

@ -648,7 +648,7 @@ static void rgui_render(void)
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);
}

View File

@ -1663,7 +1663,7 @@ static void xmb_frame(void)
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_y = menu_input_mouse_state(MENU_MOUSE_Y_AXIS);