Skip to content

Commit

Permalink
osd: skip to next active element
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Jul 4, 2024
1 parent 48b1d00 commit 5b343a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/osd/render.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5b343a3

Please sign in to comment.