[vlc-commits] Fix OSDEpgText size and opacity
Philip Höhlein
git at videolan.org
Fri May 20 12:01:07 CEST 2016
vlc | branch: master | Philip Höhlein <philip.hoehlein at googlemail.com> | Wed May 18 22:41:26 2016 +0200| [17518f48d2adfc4b0aaf5577f41fb2129db58d5a] | committer: Jean-Baptiste Kempf
Fix OSDEpgText size and opacity
This patch will fix the OSDEpg (triggered by the "position" hotkey.) not
showing text information because of transparent alpha value and invalid
font size.
The argument size of the vout_OSDEpgText function is already in pixels and
not relative, so p_style->i_font_size is the correct style option.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=17518f48d2adfc4b0aaf5577f41fb2129db58d5a
---
src/video_output/video_epg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/video_output/video_epg.c b/src/video_output/video_epg.c
index 720ff35..3c16cb1 100644
--- a/src/video_output/video_epg.c
+++ b/src/video_output/video_epg.c
@@ -133,9 +133,9 @@ static subpicture_region_t * vout_OSDEpgText(const char *text,
}
region->p_text->style = p_style;
if (p_style) {
- p_style->f_font_relsize = __MIN( size, 0 );
+ p_style->i_font_size = __MAX(size ,1 );
p_style->i_font_color = color;
- p_style->i_font_alpha = 0;
+ p_style->i_font_alpha = STYLE_ALPHA_OPAQUE;
p_style->i_features |= STYLE_HAS_FONT_ALPHA | STYLE_HAS_FONT_COLOR;
}
More information about the vlc-commits
mailing list