Commit 24a59363 authored by Francois Cartegnie's avatar Francois Cartegnie

freetype: fix first backgrounds alignment

fixes the second line background alignment which is always wrong.
parent a2ab8b27
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment