Commit ae27d602 authored by hartman's avatar hartman
Browse files

* Added a 'opaqueness' configoption to macosx-vout. Yeah i know, useles.

  But it's coooooool. http://sidekick.student.utwente.nl/videolan/transparent.jpg
parent 20b81062
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* macosx.m: MacOS X plugin for vlc * macosx.m: MacOS X plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2001-2003 VideoLAN * 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> * Authors: Colin Delacroix <colin@zoy.org>
* Eugenio Jarosiewicz <ej0@cise.ufl.edu> * Eugenio Jarosiewicz <ej0@cise.ufl.edu>
...@@ -46,6 +46,11 @@ void E_(CloseVideo) ( vlc_object_t * ); ...@@ -46,6 +46,11 @@ void E_(CloseVideo) ( vlc_object_t * );
*****************************************************************************/ *****************************************************************************/
#define VDEV_TEXT N_("video device") #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(); vlc_module_begin();
set_description( _("MacOS X interface, sound and video") ); set_description( _("MacOS X interface, sound and video") );
add_submodule(); add_submodule();
...@@ -56,5 +61,6 @@ vlc_module_begin(); ...@@ -56,5 +61,6 @@ vlc_module_begin();
set_callbacks( E_(OpenVideo), E_(CloseVideo) ); set_callbacks( E_(OpenVideo), E_(CloseVideo) );
add_category_hint( N_("Video"), NULL, VLC_FALSE ); add_category_hint( N_("Video"), NULL, VLC_FALSE );
add_integer( "macosx-vdev", 0, NULL, VDEV_TEXT, VDEV_TEXT, 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(); vlc_module_end();
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vout.m: MacOS X video output plugin * vout.m: MacOS X video output plugin
***************************************************************************** *****************************************************************************
* Copyright (C) 2001-2003 VideoLAN * 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> * Authors: Colin Delacroix <colin@zoy.org>
* Florian G. Pflug <fgp@phlo.org> * Florian G. Pflug <fgp@phlo.org>
...@@ -1256,6 +1256,8 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic ) ...@@ -1256,6 +1256,8 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
backing: NSBackingStoreBuffered backing: NSBackingStoreBuffered
defer: NO screen: o_screen]; 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 ) if( !p_vout->p_sys->b_pos_saved )
{ {
[p_vout->p_sys->o_window center]; [p_vout->p_sys->o_window center];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment