Colors are in RRGGBB format as stated in vlc_osd.h
int i_outline_color; /**< The color of the outline 0xRRGGBB */
static int unparse_GetTextColor( const commandparams_t *p_results,
buffer_t *p_output )
{
static int unparse_GetTextColor( const commandparams_t *p_results,
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 )
return ret;
if( ret != VLC_SUCCESS )
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 )
return ret;
if( ret != VLC_SUCCESS )
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 )
return ret;
if( ret != VLC_SUCCESS )
return ret;