Commit ceb26fc1 authored by basOS G's avatar basOS G Committed by Laurent Aimar

Dynamic Overlay :: Fixed settextcolor

Colors are in RRGGBB format as stated in vlc_osd.h
int        i_outline_color;   /**< The color of the outline 0xRRGGBB */
parent af09d814
...@@ -372,15 +372,15 @@ static int unparse_GetTextAlpha( const commandparams_t *p_results, ...@@ -372,15 +372,15 @@ static int unparse_GetTextAlpha( const commandparams_t *p_results,
static int unparse_GetTextColor( const commandparams_t *p_results, static int unparse_GetTextColor( const commandparams_t *p_results,
buffer_t *p_output ) buffer_t *p_output )
{ {
int ret = BufferPrintf( p_output, " %d", (p_results->fontstyle.i_font_color & 0xff0000)>>24 ); int ret = BufferPrintf( p_output, " %d", (p_results->fontstyle.i_font_color & 0xff0000)>>16 );
if( ret != VLC_SUCCESS ) if( ret != VLC_SUCCESS )
return ret; return ret;
ret = BufferPrintf( p_output, " %d", (p_results->fontstyle.i_font_color & 0x00ff00)>>16 ); ret = BufferPrintf( p_output, " %d", (p_results->fontstyle.i_font_color & 0x00ff00)>>8 );
if( ret != VLC_SUCCESS ) if( ret != VLC_SUCCESS )
return ret; return ret;
ret = BufferPrintf( p_output, " %d", (p_results->fontstyle.i_font_color & 0x0000ff)>>8 ); ret = BufferPrintf( p_output, " %d", (p_results->fontstyle.i_font_color & 0x0000ff) );
if( ret != VLC_SUCCESS ) if( ret != VLC_SUCCESS )
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment