Skip to content
Snippets Groups Projects
Commit c6bd1232 authored by Stanislas PLessia's avatar Stanislas PLessia Committed by Hugo Beauzée-Luyssen
Browse files

vlc_html_color: Assume opaque color when alpha isn't specified


Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent bc98dce5
No related branches found
No related tags found
No related merge requests found
......@@ -240,6 +240,10 @@ unsigned int vlc_html_color( const char *psz_value, bool* ok )
if( *psz_value == '#' )
{
color = strtol( psz_value + 1, &psz_end, 16 );
if ( psz_end - ( psz_value + 1 ) <= 6 && *psz_end == 0 )
{
color |= 0xFF000000;
}
if ( ok != NULL && ( *psz_end == 0 || isspace( *psz_end ) ) )
*ok = true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment