Commit 0d302380 authored by Francois Cartegnie's avatar Francois Cartegnie

text_renderer: freetype: fix background alignment, try #2 (fix #9949)

or try #3 in fact :/
This reverts commit 0b6165af.
This reverts commit 24a59363.
parent f44100de
...@@ -732,9 +732,7 @@ static inline void RenderBackground( subpicture_region_t *p_region, ...@@ -732,9 +732,7 @@ static inline void RenderBackground( subpicture_region_t *p_region,
ExtractComponents( 0x000000, &i_x, &i_y, &i_z ); ExtractComponents( 0x000000, &i_x, &i_y, &i_z );
/* Compute the upper boundary for the background */ /* Compute the upper boundary for the background */
line_top = i_align_top + p_line->i_base_line; line_top = __MAX(0, i_align_top - max_height + p_bbox->yMax + p_line->i_base_line);
if( p_line->i_height && p_line->i_height < max_height )
line_top += max_height - p_line->i_height;
/* Compute lower boundary for the background */ /* Compute lower boundary for the background */
line_bottom = __MIN(line_top + p_line->i_height, p_region->fmt.i_visible_height); line_bottom = __MIN(line_top + p_line->i_height, p_region->fmt.i_visible_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