#include <WindowScreen.h>
/* VLC headers */
-#include <vlc/vlc.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <vlc_common.h>
#include <vlc_interface.h>
#include <vlc_vout.h>
#include <vlc_keys.h>
};
-#define MOUSE_IDLE_TIMEOUT 2000000 // two seconds
#define MIN_AUTO_VSYNC_REFRESH 61 // Hz
/*****************************************************************************
{
msg_Dbg( p_vout, "using single-buffered overlay" );
bitmap_count = 2;
- if( bitmap[2] ) { delete bitmap[2]; bitmap[2] = NULL; }
+ delete bitmap[2]; bitmap[2] = NULL;
}
}
else
{
msg_Dbg( p_vout, "using simple overlay" );
bitmap_count = 1;
- if( bitmap[1] ) { delete bitmap[1]; bitmap[1] = NULL; }
+ delete bitmap[1]; bitmap[1] = NULL;
}
break;
}
else
{
- if( bitmap[0] ) { delete bitmap[0]; bitmap[0] = NULL; }
+ delete bitmap[0]; bitmap[0] = NULL;
}
}
void
VideoWindow::_FreeBuffers()
{
- if( bitmap[0] ) { delete bitmap[0]; bitmap[0] = NULL; }
- if( bitmap[1] ) { delete bitmap[1]; bitmap[1] = NULL; }
- if( bitmap[2] ) { delete bitmap[2]; bitmap[2] = NULL; }
+ delete bitmap[0]; bitmap[0] = NULL;
+ delete bitmap[1]; bitmap[1] = NULL;
+ delete bitmap[2]; bitmap[2] = NULL;
fInitStatus = B_ERROR;
}
fIgnoreDoubleClick(false)
{
p_vout = p_vout_instance;
+ fMouseHideTimeout = var_GetInteger(p_vout, "mouse-hide-timeout") * 1000;
SetViewColor(B_TRANSPARENT_32_BIT);
}
VLCView::MouseUp( BPoint where )
{
vlc_value_t val;
- val.b_bool = VLC_TRUE;
+ val.b_bool = true;
var_Set( p_vout, "mouse-clicked", val );
}
var_Set( p_vout, "mouse-x", val );
val.i_int = ( (int)point.y - i_y ) * p_vout->render.i_height / i_height;
var_Set( p_vout, "mouse-y", val );
- val.b_bool = VLC_TRUE;
+ val.b_bool = true;
var_Set( p_vout, "mouse-moved", val );
}
if (!fCursorHidden)
{
if (fCursorInside
- && mdate() - fLastMouseMovedTime > MOUSE_IDLE_TIMEOUT)
+ && mdate() - fLastMouseMovedTime > fMouseHideTimeout)
{
be_app->ObscureCursor();
fCursorHidden = true;
*****************************************************************************
* This function allocates and initializes a BeOS vout method.
*****************************************************************************/
-int E_(OpenVideo) ( vlc_object_t *p_this )
+int OpenVideo ( vlc_object_t *p_this )
{
vout_thread_t * p_vout = (vout_thread_t *)p_this;
p_vout->output.i_chroma = colspace[p_vout->p_sys->p_window->colspace_index].chroma;
p_vout->p_sys->i_index = 0;
- p_vout->b_direct = 1;
-
p_vout->output.i_rmask = 0x00ff0000;
p_vout->output.i_gmask = 0x0000ff00;
p_vout->output.i_bmask = 0x000000ff;
*****************************************************************************
* Terminate an output method created by DummyCreateOutputMethod
*****************************************************************************/
-void E_(CloseVideo) ( vlc_object_t *p_this )
+void CloseVideo ( vlc_object_t *p_this )
{
vout_thread_t * p_vout = (vout_thread_t *)p_this;