(Ozone) Prevent metadata and footer overlap (#15677)

This commit is contained in:
sonninnos 2023-09-07 23:41:05 +03:00 committed by GitHub
parent f565879d5b
commit ca7231f47c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5222,6 +5222,10 @@ static void ozone_content_metadata_line(
uint32_t color, uint32_t color,
uint8_t lines_count) uint8_t lines_count)
{ {
if (*y + (lines_count * (unsigned)ozone->fonts.footer.line_height)
> video_height - ozone->dimensions.footer_height)
return;
gfx_display_draw_text( gfx_display_draw_text(
ozone->fonts.footer.font, ozone->fonts.footer.font,
text, text,