Commit e8006359 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

vout:win32: remove support for hiding the cursor from the core

It's now done internally and not in sync with the core anyway.
So we don't handle VOUT_DISPLAY_HIDE_MOUSE anymore.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 71b960ed
......@@ -718,9 +718,6 @@ int CommonControl(vout_display_t *vd, int query, va_list args)
return VLC_SUCCESS;
}
case VOUT_DISPLAY_HIDE_MOUSE:
EventThreadMouseHide(sys->event);
return VLC_SUCCESS;
case VOUT_DISPLAY_RESET_PICTURES:
vlc_assert_unreachable();
#endif
......
......@@ -540,7 +540,6 @@ static int Open(vlc_object_t *object)
vd->fmt = fmt;
vd->info.has_double_click = true;
vd->info.needs_hide_mouse = true;
vd->info.has_pictures_invalid = vd->info.is_slow;
if (var_InheritBool(vd, "direct3d11-hw-blending") &&
......
......@@ -274,7 +274,6 @@ static int Open(vlc_object_t *object)
vout_display_info_t info = vd->info;
info.is_slow = !is_d3d9_opaque(fmt.i_chroma);
info.has_double_click = true;
info.needs_hide_mouse = true;
info.has_pictures_invalid = !is_d3d9_opaque(fmt.i_chroma);
if (var_InheritBool(vd, "direct3d9-hw-blending") &&
sys->d3dregion_format != D3DFMT_UNKNOWN &&
......
......@@ -236,7 +236,6 @@ static int Open(vlc_object_t *object)
vout_display_info_t info = vd->info;
info.is_slow = true;
info.has_double_click = true;
info.needs_hide_mouse = true;
info.has_pictures_invalid = true;
/* Interaction TODO support starting with wallpaper mode */
......
......@@ -48,7 +48,6 @@
/*****************************************************************************
* Local prototypes.
*****************************************************************************/
#define WM_VLC_HIDE_MOUSE (WM_APP + 0)
#define WM_VLC_CHANGE_TEXT (WM_APP + 1)
struct event_thread_t
......@@ -234,10 +233,6 @@ static void *EventThread( void *p_this )
{
UpdateCursorMoved( p_event );
}
else if( msg.message == WM_VLC_HIDE_MOUSE )
{
UpdateCursor( p_event, false );
}
/* */
switch( msg.message )
......@@ -266,9 +261,6 @@ static void *EventThread( void *p_this )
case WM_NCMOUSEMOVE:
break;
case WM_VLC_HIDE_MOUSE:
break;
case WM_LBUTTONDOWN:
MousePressed( p_event, msg.hwnd, MOUSE_BUTTON_LEFT );
break;
......@@ -407,11 +399,6 @@ static void *EventThread( void *p_this )
return NULL;
}
void EventThreadMouseHide( event_thread_t *p_event )
{
PostMessage( p_event->hwnd, WM_VLC_HIDE_MOUSE, 0, 0 );
}
void EventThreadUpdateTitle( event_thread_t *p_event, const char *psz_fallback )
{
char *psz_title = var_InheritString( p_event->vd, "video-title" );
......
......@@ -51,7 +51,6 @@ void EventThreadDestroy( event_thread_t * );
int EventThreadStart( event_thread_t *, event_hwnd_t *, const event_cfg_t * );
void EventThreadStop( event_thread_t * );
void EventThreadMouseHide( event_thread_t * );
void EventThreadUpdateTitle( event_thread_t *, const char *psz_fallback );
int EventThreadGetWindowStyle( event_thread_t * );
void EventThreadUpdateWindowPosition( event_thread_t *, bool *pb_moved, bool *pb_resized,
......
......@@ -244,7 +244,6 @@ static int Open(vlc_object_t *object)
vout_display_info_t info = vd->info;
info.has_double_click = true;
info.needs_hide_mouse = true;
info.subpicture_chromas = subpicture_chromas;
/* Setup vout_display now that everything is fine */
......
......@@ -109,7 +109,6 @@ static int Open(vlc_object_t *object)
vout_display_info_t info = vd->info;
info.is_slow = false;
info.has_double_click = true;
info.needs_hide_mouse = true;
info.has_pictures_invalid = true;
/* */
......
Markdown is supported
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