[vlc-devel] [PATCH 09/11] vout:win32: remove unneeded internal cursor show/hide mechanism

Steve Lhomme robux4 at videolabs.io
Tue Aug 8 15:22:29 CEST 2017


We only respond to VOUT_DISPLAY_HIDE_MOUSE now.
---
 modules/video_output/win32/events.c | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/modules/video_output/win32/events.c b/modules/video_output/win32/events.c
index 54857a2f32..9d95be1952 100644
--- a/modules/video_output/win32/events.c
+++ b/modules/video_output/win32/events.c
@@ -201,24 +201,6 @@ static void *EventThread( void *p_this )
         if( !b_key_support && isKeyEvent( msg.message ) )
             continue;
 
-        /* Handle mouse state */
-        if( msg.message == WM_MOUSEMOVE ||
-            msg.message == WM_NCMOUSEMOVE )
-        {
-            GetCursorPos( &mouse_pos );
-            /* FIXME, why this >2 limits ? */
-            if( (abs(mouse_pos.x - old_mouse_pos.x) > 2 ||
-                (abs(mouse_pos.y - old_mouse_pos.y)) > 2 ) )
-            {
-                old_mouse_pos = mouse_pos;
-                UpdateCursor( p_event, true );
-            }
-        }
-        else if( isMouseEvent( msg.message ) )
-        {
-            UpdateCursor( p_event, true );
-        }
-
         /* */
         switch( msg.message )
         {
-- 
2.12.1



More information about the vlc-devel mailing list