(gfx_display.c) Get rid of more header includes

This commit is contained in:
twinaphex 2020-02-16 17:18:13 +01:00
parent 13ea2ceaa6
commit 2f525187a1
3 changed files with 4 additions and 6 deletions

View File

@ -17,8 +17,6 @@
#include "gfx_display.h"
#include "gfx_animation.h"
#include "../configuration.h"
#include "../frontend/frontend.h"
#include "video_coord_array.h"
#include "../verbosity.h"
@ -887,10 +885,8 @@ void gfx_display_draw_cursor(
{
gfx_display_ctx_draw_t draw;
struct video_coords coords;
settings_t *settings = config_get_ptr();
bool cursor_visible = settings->bools.video_fullscreen ||
!gfx_display_has_windowed;
if (!settings->bools.menu_mouse_enable || !cursor_visible)
bool cursor_visible = video_info->fullscreen;
if (!video_info->menu_mouse_enable || !cursor_visible)
return;
coords.vertices = 4;

View File

@ -22136,6 +22136,7 @@ void video_driver_build_info(video_frame_info_t *video_info)
video_info->max_swapchain_images = settings->uints.video_max_swapchain_images;
video_info->windowed_fullscreen = settings->bools.video_windowed_fullscreen;
video_info->fullscreen = settings->bools.video_fullscreen || retroarch_is_forced_fullscreen();
video_info->menu_mouse_enable = settings->bools.menu_mouse_enable;
video_info->monitor_index = settings->uints.video_monitor_index;
video_info->shared_context = settings->bools.video_shared_context;

View File

@ -1091,6 +1091,7 @@ typedef struct video_info
typedef struct video_frame_info
{
bool menu_mouse_enable;
bool widgets_inited;
bool widgets_is_paused;
bool widgets_is_fast_forwarding;