vout:win32: remove support for hiding the cursor from the core
authorSteve Lhomme <robUx4@videolabs.io>
Wed, 9 Aug 2017 12:48:11 +0000 (14:48 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 9 Aug 2017 15:39:02 +0000 (17:39 +0200)
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 <jb@videolan.org>
modules/video_output/win32/common.c
modules/video_output/win32/direct3d11.c
modules/video_output/win32/direct3d9.c
modules/video_output/win32/directdraw.c
modules/video_output/win32/events.c
modules/video_output/win32/events.h
modules/video_output/win32/glwin32.c
modules/video_output/win32/wingdi.c

index 59e3411..f195593 100644 (file)
@@ -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
index 1ac66d6..e6eb867 100644 (file)
@@ -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") &&
index 92b3ffc..77b71d2 100644 (file)
@@ -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 &&
index 34feb8f..1399557 100644 (file)
@@ -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 */
index 30fe3f7..7608007 100644 (file)
@@ -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" );
index af1414f..635f75c 100644 (file)
@@ -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,
index c6eb156..601a7dd 100644 (file)
@@ -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 */
index 2730a42..c0b12b3 100644 (file)
@@ -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;
 
     /* */