From af75ddd04ae5947f33545e7c301cb5bd2dfb419f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Mon, 2 Sep 2019 18:45:20 +0200 Subject: [PATCH] metal: Draw video stats on top of overlay --- gfx/common/metal_common.m | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gfx/common/metal_common.m b/gfx/common/metal_common.m index b1c60c0d59..aeb62340d6 100644 --- a/gfx/common/metal_common.m +++ b/gfx/common/metal_common.m @@ -272,16 +272,6 @@ [self _drawCore:video_info]; [self _drawMenu:video_info]; - if (video_info->statistics_show) - { - struct font_params *osd_params = (struct font_params *)&video_info->osd_stat_params; - - if (osd_params) - { - font_driver_render_msg(video_info, NULL, video_info->stat_text, osd_params); - } - } - #ifdef HAVE_OVERLAY if (_overlay.enabled) { @@ -296,6 +286,16 @@ } #endif + if (video_info->statistics_show) + { + struct font_params *osd_params = (struct font_params *)&video_info->osd_stat_params; + + if (osd_params) + { + font_driver_render_msg(video_info, NULL, video_info->stat_text, osd_params); + } + } + #ifdef HAVE_MENU #ifdef HAVE_MENU_WIDGETS if (video_info->widgets_inited)