Commit 33e6f7dc authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Only call the driver when the cursor has actually changed.

parent 8ec6359b
......@@ -1789,7 +1789,7 @@ HCURSOR WINAPI DECLSPEC_HOTPATCH SetCursor( HCURSOR hCursor /* [in] Handle of cu
if (!ret) return 0;
/* Change the cursor shape only if it is visible */
if (show_count >= 0) USER_Driver->pSetCursor( hCursor );
if (show_count >= 0 && hOldCursor != hCursor) USER_Driver->pSetCursor( hCursor );
return hOldCursor;
}
......
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