From 29d478ff1e54a3390f576da3c8af937b61a3b0d7 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Tue, 15 Jun 2010 12:03:51 +0200 Subject: [PATCH] MSW: fix WinCE compilation after Cursors modification --- modules/video_output/msw/events.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c index b3d6718000..d2d5e26c38 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 } /***************************************************************************** -- 2.39.2