[vlc-commits] skins2(Win): support no cursor

Erwan Tulou git at videolan.org
Sun Jan 21 20:37:34 CET 2018


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Sun Jan 21 12:00:35 2018 +0100| [e9492429f7e116266836e561d29f5699043dc12c] | committer: Erwan Tulou

skins2(Win): support no cursor

Added to support VOUT_WINDOW_HIDE_MOUSE

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e9492429f7e116266836e561d29f5699043dc12c
---

 modules/gui/skins2/win32/win32_factory.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/skins2/win32/win32_factory.cpp b/modules/gui/skins2/win32/win32_factory.cpp
index a357276f29..74a802aff2 100644
--- a/modules/gui/skins2/win32/win32_factory.cpp
+++ b/modules/gui/skins2/win32/win32_factory.cpp
@@ -464,15 +464,16 @@ void Win32Factory::changeCursor( CursorType_t type ) const
     LPCTSTR id;
     switch( type )
     {
-    default:
     case kDefaultArrow: id = IDC_ARROW;    break;
     case kResizeNWSE:   id = IDC_SIZENWSE; break;
     case kResizeNS:     id = IDC_SIZENS;   break;
     case kResizeWE:     id = IDC_SIZEWE;   break;
     case kResizeNESW:   id = IDC_SIZENESW; break;
+    case kNoCursor:
+    default: id = 0;
     }
 
-    HCURSOR hCurs = LoadCursor( NULL, id );
+    HCURSOR hCurs = (type == kNoCursor) ? NULL : LoadCursor( NULL, id );
     SetCursor( hCurs );
 }
 



More information about the vlc-commits mailing list