[vlc-devel] commit: Fixed support for font color/opacity for html rendered text ( close #2098). (Laurent Aimar )
git version control
git at videolan.org
Tue Sep 23 19:51:11 CEST 2008
vlc | branch: 0.9-bugfix | Laurent Aimar <fenrir at videolan.org> | Tue Sep 23 19:53:59 2008 +0200| [59adec1addf115497d91c1f63472cb293815fe0d] | committer: Laurent Aimar
Fixed support for font color/opacity for html rendered text (close #2098).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=59adec1addf115497d91c1f63472cb293815fe0d
---
modules/misc/freetype.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/misc/freetype.c b/modules/misc/freetype.c
index 4006739..b99760b 100644
--- a/modules/misc/freetype.c
+++ b/modules/misc/freetype.c
@@ -2067,7 +2067,8 @@ static int ProcessNodes( filter_t *p_filter,
rv = PushFont( &p_fonts,
FC_DEFAULT_FONT,
p_sys->i_font_size,
- 0x00ffffff,
+ (p_sys->i_font_color & 0xffffff) |
+ (((255-p_sys->i_font_opacity) & 0xff) << 24),
0x00ffffff );
}
if( rv != VLC_SUCCESS )
More information about the vlc-devel
mailing list