[vlc-devel] commit: Cleanup alpha (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 17:29:24 2008 +0200| [0532b63eac9a335b2b996834277aa8a97a992df2]

Cleanup alpha

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

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

diff --git a/modules/gui/fbosd.c b/modules/gui/fbosd.c
index 2dcd29d..1a1f403 100644
--- a/modules/gui/fbosd.c
+++ b/modules/gui/fbosd.c
@@ -189,12 +189,9 @@ vlc_module_begin();
     add_string( "fbosd-text", NULL, NULL, FBOSD_TEXT,
                 FBOSD_LONGTEXT, true );
 
-#if defined(FBOSD_BLENDING)
     add_integer_with_range( "fbosd-alpha", 255, 0, 255, NULL, ALPHA_TEXT,
                             ALPHA_LONGTEXT, true );
 
-#endif
-
     set_section( N_("Position"), NULL );
     add_integer( "fbosd-x", 0, NULL, POSX_TEXT,
                  POSX_LONGTEXT, false );
@@ -332,12 +329,9 @@ static int Create( vlc_object_t *p_this )
         return VLC_ENOMEM;
     }
 
-#if defined(FBOSD_BLENDING)
     p_sys->i_alpha = var_CreateGetIntegerCommand( p_intf, "fbosd-alpha" );
     var_AddCallback( p_intf, "fbosd-alpha", OverlayCallback, NULL );
-#else
-    p_sys->i_alpha = 255;
-#endif
+
     p_sys->i_aspect = -1;
     psz_aspect =
             var_CreateGetNonEmptyString( p_intf, "fbosd-aspect-ratio" );
@@ -480,10 +474,8 @@ static void Destroy( vlc_object_t *p_this )
     p_sys->b_render = false;
     p_sys->b_clear = false;
 
-#if defined(FBOSD_BLENDING)
     var_DelCallback( p_intf, "fbosd-alpha", OverlayCallback, NULL );
     var_Destroy( p_intf, "fbosd-alpha" );
-#endif
 
     var_DelCallback( p_intf, "fbosd-x", OverlayCallback, NULL );
     var_DelCallback( p_intf, "fbosd-y", OverlayCallback, NULL );
@@ -1438,12 +1430,10 @@ static int OverlayCallback( vlc_object_t *p_this, char const *psz_cmd,
         {
             p_sys->render[i].text_style.i_font_alpha = 255 - newval.i_int;
         }
-#if defined(FBOSD_BLENDING)
         else if( !strncmp( psz_cmd, "fbosd-alpha", 11 ) )
         {
             p_sys->render[i].i_alpha = newval.i_int;
         }
-#endif
     }
     return VLC_SUCCESS;
 }




More information about the vlc-devel mailing list