Skip to content

Commit ca7231f

Browse files
authored
(Ozone) Prevent metadata and footer overlap (#15677)
1 parent f565879 commit ca7231f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

menu/drivers/ozone.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5222,6 +5222,10 @@ static void ozone_content_metadata_line(
52225222
uint32_t color,
52235223
uint8_t lines_count)
52245224
{
5225+
if (*y + (lines_count * (unsigned)ozone->fonts.footer.line_height)
5226+
> video_height - ozone->dimensions.footer_height)
5227+
return;
5228+
52255229
gfx_display_draw_text(
52265230
ozone->fonts.footer.font,
52275231
text,

0 commit comments

Comments
 (0)