Commit a9c0a1ba authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Freetype: code cosmetic

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 9746a846
...@@ -815,7 +815,7 @@ static inline int RenderAXYZ( filter_t *p_filter, ...@@ -815,7 +815,7 @@ static inline int RenderAXYZ( filter_t *p_filter,
for( int i = 0; i < p_line->i_character_count; i++ ) for( int i = 0; i < p_line->i_character_count; i++ )
{ {
const line_character_t *ch = &p_line->p_character[i]; const line_character_t *ch = &p_line->p_character[i];
FT_BitmapGlyph p_glyph = g == 0 ? ch->p_shadow : g == 1 ? ch->p_outline : ch->p_glyph; const FT_BitmapGlyph p_glyph = g == 0 ? ch->p_shadow : g == 1 ? ch->p_outline : ch->p_glyph;
if( !p_glyph ) if( !p_glyph )
continue; continue;
...@@ -1087,9 +1087,11 @@ static int RenderCommon( filter_t *p_filter, subpicture_region_t *p_region_out, ...@@ -1087,9 +1087,11 @@ static int RenderCommon( filter_t *p_filter, subpicture_region_t *p_region_out,
FillRGBAPicture, FillRGBAPicture,
BlendRGBAPixel ); BlendRGBAPixel );
else if( *p_chroma == VLC_CODEC_ARGB ) else if( *p_chroma == VLC_CODEC_ARGB )
rv = RenderAXYZ( p_filter, p_region_out, p_lines, &bbox, rv = RenderAXYZ( p_filter, p_region_out, p_lines, &bbox, i_margin,
i_margin, *p_chroma, RGBFromRGB, VLC_CODEC_ARGB,
FillARGBPicture, BlendARGBPixel ); RGBFromRGB,
FillARGBPicture,
BlendARGBPixel );
if( !rv ) if( !rv )
break; break;
......
...@@ -53,6 +53,5 @@ line_desc_t *NewLine( int i_count ); ...@@ -53,6 +53,5 @@ line_desc_t *NewLine( int i_count );
int LayoutText( filter_t *p_filter, line_desc_t **pp_lines, int LayoutText( filter_t *p_filter, line_desc_t **pp_lines,
FT_BBox *p_bbox, int *pi_max_face_height, FT_BBox *p_bbox, int *pi_max_face_height,
uni_char_t *psz_text, text_style_t **pp_styles, uni_char_t *psz_text, text_style_t **pp_styles,
uint32_t *pi_k_dates, int i_len ); uint32_t *pi_k_dates, int i_len );
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