Browse Source

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@videolan.org>
pull/46/head
Philip Höhlein 10 years ago
committed by Jean-Baptiste Kempf
parent
commit
17518f48d2
  1. 4
      src/video_output/video_epg.c

4
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; region->p_text->style = p_style;
if (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_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; p_style->i_features |= STYLE_HAS_FONT_ALPHA | STYLE_HAS_FONT_COLOR;
} }

Loading…
Cancel
Save