Cleanup in transparant().
authorJean-Paul Saman <jpsaman@videolan.org>
Fri, 9 May 2008 14:13:08 +0000 (16:13 +0200)
committerJean-Paul Saman <jpsaman@videolan.org>
Fri, 9 May 2008 15:52:18 +0000 (17:52 +0200)
modules/gui/fbosd.c

index 6d4c4d6..bd81714 100644 (file)
@@ -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 );
     }
 }