]> git.sesse.net Git - vlc/commitdiff
MSW: fix WinCE compilation after Cursors modification
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 15 Jun 2010 10:03:51 +0000 (12:03 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 15 Jun 2010 10:05:45 +0000 (12:05 +0200)
modules/video_output/msw/events.c

index b3d67180005a04f9a86560cc425e8ebe2356734e..d2d5e26c3849f0ad4fb796d330607c66ec611b17 100644 (file)
@@ -170,6 +170,7 @@ static void UpdateCursor( event_thread_t *p_event, bool b_show )
     }
 }
 
+#ifndef UNDER_CE
 static HCURSOR EmptyCursor( HINSTANCE instance )
 {
     const int cw = GetSystemMetrics(SM_CXCURSOR);
@@ -189,6 +190,7 @@ static HCURSOR EmptyCursor( HINSTANCE instance )
 
     return cursor;
 }
+#endif
 
 static void MousePressed( event_thread_t *p_event, HWND hwnd, unsigned button )
 {
@@ -530,7 +532,9 @@ static int DirectXCreateWindow( event_thread_t *p_event )
     }
     #endif
     p_event->cursor_arrow = LoadCursor(NULL, IDC_ARROW);
+#ifndef UNDER_CE
     p_event->cursor_empty = EmptyCursor(hInstance);
+#endif
 
     /* Get the Icon from the main app */
     vlc_icon = NULL;
@@ -711,7 +715,9 @@ static void DirectXCloseWindow( event_thread_t *p_event )
     UnregisterClass( p_event->class_video, hInstance );
     UnregisterClass( p_event->class_main, hInstance );
 
+#ifndef UNDER_CE
     DestroyCursor( p_event->cursor_empty );
+#endif
 }
 
 /*****************************************************************************