]> git.sesse.net Git - vlc/commitdiff
* Added a 'opaqueness' configoption to macosx-vout. Yeah i know, useles.
authorDerk-Jan Hartman <hartman@videolan.org>
Sat, 19 Apr 2003 13:55:56 +0000 (13:55 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Sat, 19 Apr 2003 13:55:56 +0000 (13:55 +0000)
  But it's coooooool. http://sidekick.student.utwente.nl/videolan/transparent.jpg

modules/gui/macosx/macosx.m
modules/gui/macosx/vout.m

index 04bc46ed532a6578bc32099e21975d69518cdde3..630884fbcb12013e82f95570645bc626172eef3c 100644 (file)
@@ -2,7 +2,7 @@
  * macosx.m: MacOS X plugin for vlc
  *****************************************************************************
  * Copyright (C) 2001-2003 VideoLAN
- * $Id: macosx.m,v 1.6 2003/03/30 23:35:06 jlj Exp $
+ * $Id: macosx.m,v 1.7 2003/04/19 13:55:56 hartman Exp $
  *
  * Authors: Colin Delacroix <colin@zoy.org>
  *          Eugenio Jarosiewicz <ej0@cise.ufl.edu>
@@ -46,6 +46,11 @@ void E_(CloseVideo)   ( vlc_object_t * );
  *****************************************************************************/
 #define VDEV_TEXT N_("video device")
 
+#define OPAQUENESS_TEXT N_("opaqueness")
+#define OPAQUENESS_LONGTEXT N_( \
+    "Set the transparency of the video output. 1 is non-transparent (default) " \
+    "0 is fully transparent.")
+
 vlc_module_begin();
     set_description( _("MacOS X interface, sound and video") );
     add_submodule();
@@ -56,5 +61,6 @@ vlc_module_begin();
         set_callbacks( E_(OpenVideo), E_(CloseVideo) );
         add_category_hint( N_("Video"), NULL, VLC_FALSE );
         add_integer( "macosx-vdev", 0, NULL, VDEV_TEXT, VDEV_TEXT, VLC_FALSE );
+        add_float( "opaqueness", 1, NULL, OPAQUENESS_TEXT, OPAQUENESS_LONGTEXT, VLC_FALSE );
 vlc_module_end();
 
index c000d539776d8e1e1a3da0dcf374f8dceb812798..5b23cb7eddcc084ca2bf5355eaa88013ed045a8b 100644 (file)
@@ -2,7 +2,7 @@
  * vout.m: MacOS X video output plugin
  *****************************************************************************
  * Copyright (C) 2001-2003 VideoLAN
- * $Id: vout.m,v 1.43 2003/03/19 13:55:43 hartman Exp $
+ * $Id: vout.m,v 1.44 2003/04/19 13:55:56 hartman Exp $
  *
  * Authors: Colin Delacroix <colin@zoy.org>
  *          Florian G. Pflug <fgp@phlo.org>
@@ -1256,6 +1256,8 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
             backing: NSBackingStoreBuffered
             defer: NO screen: o_screen];
 
+        [p_vout->p_sys->o_window setAlphaValue: config_GetFloat( p_vout, "opaqueness" )];
+
         if( !p_vout->p_sys->b_pos_saved )   
         {
             [p_vout->p_sys->o_window center];