* Cheat with the screen saver (closes #46).
* intf.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: intf.m,v 1.10 2002/12/14 19:34:06 gbazin Exp $
+ * $Id: intf.m,v 1.11 2002/12/24 23:00:51 massiot Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
[o_mu_file setTitle: _NS("File")];
[o_mi_open_file setTitle: _NS("Open File...")];
- [o_mi_open_generic setTitle: _NS("Open Generic...")];
+ [o_mi_open_generic setTitle: _NS("Open...")];
[o_mi_open_disc setTitle: _NS("Open Disc...")];
[o_mi_open_net setTitle: _NS("Open Network...")];
[o_mi_open_recent setTitle: _NS("Open Recent")];
vout_thread_t * p_vout = vlc_object_find( p_intf, VLC_OBJECT_VOUT,
FIND_ANYWHERE );
+ /* Disable screen saver. */
+ UpdateSystemActivity( UsrActivity );
+
vlc_mutex_lock( &p_input->stream.stream_lock );
if( !p_input->b_die )
* vout.h: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: vout.h,v 1.2 2002/12/08 05:30:47 jlj Exp $
+ * $Id: vout.h,v 1.3 2002/12/24 23:00:51 massiot Exp $
*
* Authors: Colin Delacroix <colin@zoy.org>
* Florian G. Pflug <fgp@phlo.org>
MatrixRecordPtr p_matrix;
DecompressorComponent img_dc;
ImageDescriptionHandle h_img_descr;
+ Ptr p_fullscreen_state;
#endif
};
* vout.m: MacOS X video output plugin
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: vout.m,v 1.7 2002/12/08 05:30:47 jlj Exp $
+ * $Id: vout.m,v 1.8 2002/12/24 23:00:51 massiot Exp $
*
* Authors: Colin Delacroix <colin@zoy.org>
* Florian G. Pflug <fgp@phlo.org>
p_vout->p_sys->h_img_descr =
(ImageDescriptionHandle)NewHandleClear( sizeof(ImageDescription) );
p_vout->p_sys->p_matrix = (MatrixRecordPtr)malloc( sizeof(MatrixRecord) );
+ p_vout->p_sys->p_fullscreen_state;
p_vout->p_sys->b_mouse_pointer_visible = 1;
if( p_vout->b_fullscreen )
{
- HideMenuBar();
+ if ( p_vout->p_sys->p_fullscreen_state == NULL )
+ BeginFullScreen( &p_vout->p_sys->p_fullscreen_state, NULL, 0, 0,
+ NULL, NULL, fullScreenHideCursor | fullScreenAllowEvents );
}
else
{
- ShowMenuBar();
+ if ( p_vout->p_sys->p_fullscreen_state != NULL )
+ EndFullScreen ( p_vout->p_sys->p_fullscreen_state, NULL );
+ p_vout->p_sys->p_fullscreen_state = NULL;
}
if( CoCreateWindow( p_vout ) )