From 5b343a374c6ee77d7698e51e51eacabb9cc17856 Mon Sep 17 00:00:00 2001 From: bkleiner Date: Thu, 4 Jul 2024 20:22:00 +0200 Subject: [PATCH] osd: skip to next active element --- src/osd/render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/render.c b/src/osd/render.c index 78cf8f98f..52106be83 100644 --- a/src/osd/render.c +++ b/src/osd/render.c @@ -379,9 +379,9 @@ void osd_init() { static void osd_display_regular() { osd_element_t *el = (osd_element_t *)(osd_elements() + osd_state.element); - if (osd_state.element < OSD_ELEMENT_MAX && !el->active) { + while (osd_state.element < OSD_ELEMENT_MAX && !el->active) { osd_state.element++; - return; + el = (osd_element_t *)(osd_elements() + osd_state.element); } switch (osd_state.element) {