[vlc-commits] Fixed the value set in text_style_t::i_font_alpha by the marquee filter.
Laurent Aimar
git at videolan.org
Wed Oct 5 23:17:40 CEST 2011
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Oct 5 23:14:05 2011 +0200| [5b323eff127755ed386f5e233819c61edd883507] | committer: Laurent Aimar
Fixed the value set in text_style_t::i_font_alpha by the marquee filter.
It partially closes #5375.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5b323eff127755ed386f5e233819c61edd883507
---
modules/video_filter/marq.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_filter/marq.c b/modules/video_filter/marq.c
index b11de25..cfcfe31 100644
--- a/modules/video_filter/marq.c
+++ b/modules/video_filter/marq.c
@@ -218,7 +218,7 @@ static int CreateFilter( vlc_object_t *p_this )
var_AddCallback( p_filter, "marq-refresh", MarqueeCallback, p_sys );
CREATE_VAR( i_pos, Integer, "marq-position" );
CREATE_VAR( psz_marquee, String, "marq-marquee" );
- p_sys->p_style->i_font_alpha = 255 - var_CreateGetIntegerCommand( p_filter,
+ p_sys->p_style->i_font_alpha = var_CreateGetIntegerCommand( p_filter,
"marq-opacity" );
var_AddCallback( p_filter, "marq-opacity", MarqueeCallback, p_sys );
CREATE_VAR( p_style->i_font_color, Integer, "marq-color" );
@@ -357,7 +357,7 @@ static int MarqueeCallback( vlc_object_t *p_this, char const *psz_var,
}
else if ( !strcmp( psz_var, "marq-opacity" ) )
{
- p_sys->p_style->i_font_alpha = 255 - newval.i_int;
+ p_sys->p_style->i_font_alpha = newval.i_int;
}
else if ( !strcmp( psz_var, "marq-size" ) )
{
More information about the vlc-commits
mailing list