Commit b17b77c7 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

wineandroid: Set the window cursor immediately in SetCursor.

parent 4b968267
......@@ -1448,14 +1448,6 @@ static BOOL get_icon_info( HICON handle, ICONINFOEXW *ret )
*/
void ANDROID_SetCursor( HWND hwnd, HCURSOR handle )
{
static HCURSOR last_cursor;
static DWORD last_cursor_change;
if (InterlockedExchangePointer( (void **)&last_cursor, handle ) != handle ||
NtGetTickCount() - last_cursor_change > 100)
{
last_cursor_change = NtGetTickCount();
if (handle)
{
unsigned int width = 0, height = 0, *bits = NULL;
......@@ -1483,7 +1475,6 @@ void ANDROID_SetCursor( HWND hwnd, HCURSOR handle )
NtGdiDeleteObjectApp( info.hbmMask );
}
else ioctl_set_cursor( 0, 0, 0, 0, 0, NULL );
}
}
......
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