[vlc-commits] commit: MSW: fix WinCE compilation after Cursors modification ( Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Wed Jun 16 03:34:07 CEST 2010


vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jun 15 12:03:51 2010 +0200| [534aea2755f855efe8a7672b9865c1b5d2234822] | committer: Jean-Baptiste Kempf 

MSW: fix WinCE compilation after Cursors modification
(cherry picked from commit 29d478ff1e54a3390f576da3c8af937b61a3b0d7)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/video_output/msw/events.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c
index b3d6718..d2d5e26 100644
--- a/modules/video_output/msw/events.c
+++ b/modules/video_output/msw/events.c
@@ -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
 }
 
 /*****************************************************************************



More information about the vlc-commits mailing list