]> git.sesse.net Git - vlc/commitdiff
Dynamic Overlay :: Fixed settextcolor
authorbasOS G <noxelia 4t gmail , com>
Thu, 8 Jan 2009 18:56:41 +0000 (20:56 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 21 Jan 2009 18:03:42 +0000 (19:03 +0100)
Colors are in RRGGBB format as stated in vlc_osd.h
int        i_outline_color;   /**< The color of the outline 0xRRGGBB */

modules/video_filter/dynamicoverlay/dynamicoverlay_commands.c

index 9b693c26d45ebfd4e7be77d248a6318fb9727805..3f3f5b82fc5e513dff7f3d5beea1bf936c92297e 100644 (file)
@@ -372,15 +372,15 @@ static int unparse_GetTextAlpha( const commandparams_t *p_results,
 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;
 
-    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;
 
-    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;