Commit 534aea27 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

MSW: fix WinCE compilation after Cursors modification

(cherry picked from commit 29d478ff)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 0a2f5418
......@@ -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
}
/*****************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment