[vlc-devel] commit: Dynamic Overlay :: Fixed settextcolor (basOS G )

git version control git at videolan.org
Wed Jan 21 19:10:21 CET 2009


vlc | branch: master | basOS G <noxelia 4t gmail , com> | Thu Jan  8 20:56:41 2009 +0200| [ceb26fc193de54ff32b98bdc19a9ab8c18d3fa11] | committer: 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 */

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ceb26fc193de54ff32b98bdc19a9ab8c18d3fa11
---

 .../dynamicoverlay/dynamicoverlay_commands.c       |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/video_filter/dynamicoverlay/dynamicoverlay_commands.c b/modules/video_filter/dynamicoverlay/dynamicoverlay_commands.c
index 9b693c2..3f3f5b8 100644
--- a/modules/video_filter/dynamicoverlay/dynamicoverlay_commands.c
+++ b/modules/video_filter/dynamicoverlay/dynamicoverlay_commands.c
@@ -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;
 




More information about the vlc-devel mailing list