[vlc-devel] commit: Cleanup in transparant(). (Jean-Paul Saman )

git version control git at videolan.org
Fri May 9 17:51:44 CEST 2008


vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Fri May  9 16:13:08 2008 +0200| [2b1a76ee6642771bb797fdd6327eda7220342bd3]

Cleanup in transparant().

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

 modules/gui/fbosd.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/gui/fbosd.c b/modules/gui/fbosd.c
index 6d4c4d6..bd81714 100644
--- a/modules/gui/fbosd.c
+++ b/modules/gui/fbosd.c
@@ -703,9 +703,10 @@ static void SetOverlayTransparency( intf_thread_t *p_intf,
     {
         msg_Dbg( p_intf, "Make overlay %s",
                  b_transparent ? "transparent" : "opaque" );
-        memset( p_sys->p_overlay->p[0].p_pixels, 0x00, i_page_size );
         if( b_transparent )
             memset( p_sys->p_overlay->p[0].p_pixels, 0xFF, i_page_size );
+        else
+            memset( p_sys->p_overlay->p[0].p_pixels, 0x00, i_page_size );
     }
 }
 




More information about the vlc-devel mailing list