Skip to content
Snippets Groups Projects
Commit 24a59363 authored by François Cartegnie's avatar François Cartegnie :fingers_crossed:
Browse files

freetype: fix first backgrounds alignment

fixes the second line background alignment which is always wrong.
parent a2ab8b27
No related branches found
No related tags found
No related merge requests found
......@@ -729,7 +729,7 @@ static inline void RenderBackground( subpicture_region_t *p_region,
ExtractComponents( 0x000000, &i_x, &i_y, &i_z );
/* Compute the upper boundary for the background */
if ((i_align_top + p_line->i_base_line - max_height) < 0)
if ((i_align_top + p_line->i_base_line - max_height) < 0 || p_line->i_base_line <= p_line->i_height)
line_top = i_align_top + p_line->i_base_line;
else
line_top = i_align_top + p_line->i_base_line - max_height;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment