[vlc-commits] freetype: add shadow to default style
Francois Cartegnie
git at videolan.org
Mon Aug 24 22:45:45 CEST 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Aug 24 22:43:19 2015 +0200| [f6ef44c5810d9eb78a0a8ca1be2a411b9ff55013] | committer: Francois Cartegnie
freetype: add shadow to default style
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f6ef44c5810d9eb78a0a8ca1be2a411b9ff55013
---
modules/text_renderer/freetype.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/text_renderer/freetype.c b/modules/text_renderer/freetype.c
index d0ce0ad..4ccafc3 100644
--- a/modules/text_renderer/freetype.c
+++ b/modules/text_renderer/freetype.c
@@ -858,6 +858,8 @@ static void FillDefaultStyles( filter_t *p_filter )
p_sys->p_default_style->i_shadow_color = VLC_CLIP( p_sys->p_default_style->i_shadow_color, 0, 0xFFFFFF );
p_sys->p_default_style->i_font_size = 0;
+ p_sys->p_default_style->i_style_flags |= STYLE_SHADOW;
+ p_sys->p_default_style->i_features |= STYLE_HAS_FLAGS;
p_sys->p_forced_style->i_font_size = var_InheritInteger( p_filter, "freetype-fontsize" );
p_sys->p_forced_style->f_font_relsize = var_InheritInteger( p_filter, "freetype-rel-fontsize" );
More information about the vlc-commits
mailing list