[vlc-commits] Freetype: fix freetype-color option
Jean-Baptiste Kempf
git at videolan.org
Wed Jul 6 20:41:09 CEST 2016
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jul 6 20:39:44 2016 +0200| [18ac784c288e9bf09c2a0f24a8e576ceabf84035] | committer: Jean-Baptiste Kempf
Freetype: fix freetype-color option
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=18ac784c288e9bf09c2a0f24a8e576ceabf84035
---
modules/text_renderer/freetype/freetype.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/text_renderer/freetype/freetype.c b/modules/text_renderer/freetype/freetype.c
index 135b411..c75770a 100644
--- a/modules/text_renderer/freetype/freetype.c
+++ b/modules/text_renderer/freetype/freetype.c
@@ -934,6 +934,8 @@ static void FillDefaultStyles( filter_t *p_filter )
p_sys->p_default_style->i_font_alpha = var_InheritInteger( p_filter,"freetype-opacity" );
p_sys->p_default_style->i_font_alpha = VLC_CLIP( p_sys->p_default_style->i_font_alpha, 0, 255 );
+ p_sys->p_default_style->i_font_color = var_InheritInteger( p_filter,"freetype-color" );
+ p_sys->p_default_style->i_font_color = VLC_CLIP( p_sys->p_default_style->i_font_color, 0, 0xFFFFFF );
p_sys->p_default_style->i_outline_alpha = var_InheritInteger( p_filter, "freetype-outline-opacity" );
p_sys->p_default_style->i_outline_alpha = VLC_CLIP( p_sys->p_default_style->i_outline_alpha, 0, 255 );
More information about the vlc-commits
mailing list