prevent some pointer grabbing

This commit is contained in:
twinaphex 2018-10-01 01:54:56 +02:00
parent 527228e571
commit a098ce9fdd
3 changed files with 4 additions and 2 deletions

View File

@ -1148,8 +1148,7 @@ static bool gl_frame(void *data, const void *frame,
if (!string_is_empty(msg))
{
settings_t *settings = config_get_ptr();
if (settings && settings->bools.video_msg_bgcolor_enable)
if (video_info->msg_bgcolor_enable)
gl_render_osd_background(gl, video_info, msg);
font_driver_render_msg(video_info, NULL, msg, NULL);
}

View File

@ -2786,6 +2786,8 @@ void video_driver_build_info(video_frame_info_t *video_info)
video_info->use_rgba = video_driver_use_rgba;
video_info->libretro_running = false;
video_info->msg_bgcolor_enable = settings->bools.video_msg_bgcolor_enable;
#ifdef HAVE_MENU
video_info->menu_is_alive = menu_driver_is_alive();
video_info->menu_footer_opacity = settings->floats.menu_footer_opacity;

View File

@ -426,6 +426,7 @@ typedef struct video_frame_info
bool runloop_is_paused;
bool is_perfcnt_enable;
bool menu_is_alive;
bool msg_bgcolor_enable;
int custom_vp_x;
int custom_vp_y;