Commit 598064b9 authored by François Cartegnie's avatar François Cartegnie 🤞

text_renderer: freetype: align background to text

parent d58ffc5a
......@@ -856,7 +856,7 @@ static inline int RenderAXYZ( filter_t *p_filter,
/* Render all lines */
for( line_desc_t *p_line = p_line_head; p_line != NULL; p_line = p_line->p_next )
{
FT_Vector offset = GetAlignedOffset( p_line, p_textbbox, p_region->i_align );
FT_Vector offset = GetAlignedOffset( p_line, p_textbbox, p_region->i_text_align );
/* Render all glyphs and underline/strikethrough */
for( int i = p_line->i_first_visible_char_index; i <= p_line->i_last_visible_char_index; i++ )
......
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